PR c++/11413
* parser.c (cp_parser_nested_name_specifier_opt): Issue correct
error message when parser->scope is global_namespace.
From-SVN: r71856
+2003-09-27 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
+
+ PR c++/11413
+ * parser.c (cp_parser_nested_name_specifier_opt): Issue correct
+ error message when parser->scope is global_namespace.
+
2003-09-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
* cp-tree.h, name-lookup.h, decl.c, decl2.c: Remove reference to
error ("`%T::%D' is not a class-name or "
"namespace-name",
parser->scope, token->value);
+ else if (parser->scope == global_namespace)
+ error ("`::%D' is not a class-name or "
+ "namespace-name",
+ token->value);
else
error ("`%D::%D' is not a class-name or "
"namespace-name",