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
This commit is contained in:
Mark Mitchell 2006-01-15 00:56:50 +00:00 committed by Mark Mitchell
parent cfa4da9b6d
commit 9e2813200c
4 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -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;
}

View File

@ -1,3 +1,8 @@
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

View File

@ -0,0 +1,11 @@
// PR c++/25663
template<int> struct A
{
A(int);
};
void foo()
{
A<0>(A<0>(0));
}