This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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




ChangeLog: * parser.c (cp_parser_diagnose_invalid_type_name): Move the q after the %.


Index: parser.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/parser.c,v
retrieving revision 1.271
diff -u -p -r1.271 parser.c
--- parser.c 27 Oct 2004 02:23:12 -0000 1.271
+++ parser.c 28 Oct 2004 02:12:44 -0000
@@ -2008,7 +2008,7 @@ cp_parser_diagnose_invalid_type_name (cp
error ("%qE in namespace %qE does not name a type",
id, parser->scope);
else if (TYPE_P (parser->scope))
- error ("q%E in class %qT does not name a type", id, parser->scope);
+ error ("%qE in class %qT does not name a type", id, parser->scope);
else
gcc_unreachable ();
}



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]