diff mbox

Go patch committed: Better error for unknown name in package

Message ID mcrfwjqah55.fsf@coign.corp.google.com
State New
Headers show

Commit Message

Ian Lance Taylor Sept. 21, 2011, 12:11 a.m. UTC
Eric Botcazou <ebotcazou@adacore.com> writes:

>> This patch improves the error message that the Go frontend issues when
>> an unknown name in a package is used as type.  It also fixes some
>> followon errors.
>
> s/identifer/identifier/ in the error message.

Fixed with the obvious patch.  Committed to mainline.  Thanks for
noticing.

Ian
diff mbox

Patch

diff -r b9933a6f280c go/parse.cc
--- a/go/parse.cc	Tue Sep 20 15:33:25 2011 -0700
+++ b/go/parse.cc	Tue Sep 20 17:09:53 2011 -0700
@@ -340,7 +340,7 @@ 
       else
 	{
 	  const std::string& packname(package->package_value()->name());
-	  error_at(location, "reference to undefined identifer %<%s.%s%>",
+	  error_at(location, "reference to undefined identifier %<%s.%s%>",
 		   Gogo::message_name(packname).c_str(),
 		   Gogo::message_name(name).c_str());
 	  issue_error = false;