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
+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.
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
--- /dev/null
+// PR c++/25663
+
+template<int> struct A
+{
+ A(int);
+};
+
+void foo()
+{
+ A<0>(A<0>(0));
+}