Commit 9e281320 by Mark Mitchell Committed by Mark Mitchell

re PR c++/25663 (Trouble parsing nested templated constructor calls)

	PR c++/25663
	* parser.c (cp_parser_direct_declarator): Use cp_parser_error
	instead of error.
	PR c++/25663
	* g++.dg/template/ctor6.C: New test.

From-SVN: r109713
parent cfa4da9b
2006-01-14 Mark Mitchell <mark@codesourcery.com>
PR c++/25663
* parser.c (cp_parser_direct_declarator): Use cp_parser_error
instead of error.
2006-01-13 Jason Merrill <jason@redhat.com>
* pt.c (check_explicit_specialization): Use CP_DECL_CONTEXT even more.
......
......@@ -11505,7 +11505,7 @@ cp_parser_direct_declarator (cp_parser* parser,
here because we do not have enough
information about its original syntactic
form. */
error ("invalid declarator");
cp_parser_error (parser, "invalid declarator");
declarator = cp_error_declarator;
break;
}
......
2006-01-14 Mark Mitchell <mark@codesourcery.com>
PR c++/25663
* g++.dg/template/ctor6.C: New test.
2006-01-14 Kazu Hirata <kazu@codesourcery.com>
PR tree-optimization/25485
// PR c++/25663
template<int> struct A
{
A(int);
};
void foo()
{
A<0>(A<0>(0));
}
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