Patchwork [gccgo] Change error message to match testsuite

login
register
mail settings
Submitter Ian Taylor
Date Aug. 31, 2010, 11:07 p.m.
Message ID <mcr39tucrez.fsf@google.com>
Download mbox | patch
Permalink /patch/63326/
State New
Headers show

Comments

Ian Taylor - Aug. 31, 2010, 11:07 p.m.
This trivial patch changes an error message to match the message
expected by the testsuite.  Usually I change the testsuite, but in this
case the testsuite message seems fine.  Committed to gccgo branch.

Ian

Patch

diff -r 7758ec0e0667 go/parse.cc
--- a/go/parse.cc	Tue Aug 31 15:51:14 2010 -0700
+++ b/go/parse.cc	Tue Aug 31 16:06:12 2010 -0700
@@ -1387,7 +1387,7 @@ 
 	      && (ftype->forward_declaration_type()->named_object()
 		  == named_type))
 	    {
-	      error_at(location, "recursive type definition");
+	      error_at(location, "invalid recursive type");
 	      type = Type::make_error_type();
 	    }