[Committed] Fix a simple diagnostic problem in C++ parser

Andrew Pinski pinskia@physics.uc.edu
Thu Oct 28 03:05:00 GMT 2004


On Oct 27, 2004, at 10:16 PM, Andrew Pinski wrote:

> We had a misplaced q instead of the correct %qE, we had q%E which 
> caused
> a q to show up instead of being quoted.  I committed this as obvious.
>
> Thanks,
> Andrew Pinski

Found another (I actually greped this time).

Thanks,
Andrew Pinski

ChangeLog:

	* decl.c: Move the q after the %.

Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.1318
diff -u -p -r1.1318 decl.c
--- decl.c	25 Oct 2004 13:27:29 -0000	1.1318
+++ decl.c	28 Oct 2004 02:27:48 -0000
@@ -5534,7 +5534,7 @@ bad_specifiers (tree object,
      error ("%qD declared as an %<inline%> %s", object, type);
    if (quals)
      error ("%<const%> and %<volatile%> function specifiers on "
-           "q%D invalid in %s declaration",
+           "%qD invalid in %s declaration",
             object, type);
    if (friendp)
      cp_error_at ("%qD declared as a friend", object);



More information about the Gcc-patches mailing list