Commit 9075a305 by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

re PR c++/11415 (Error message with ::::)

	PR c++/11413
	* parser.c (cp_parser_nested_name_specifier_opt): Issue correct
	error message when parser->scope is global_namespace.

From-SVN: r71856
parent 337f35bb
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
......
......@@ -2997,6 +2997,10 @@ cp_parser_nested_name_specifier_opt (cp_parser *parser,
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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment