PR c++/18586
* parser.c (cp_parser_init_declarator): Do not pop scope twice.
PR c++/18586
* g++.dg/template/crash27.C: New test.
From-SVN: r91182
2004-11-24 Mark Mitchell <mark@codesourcery.com>
+ PR c++/18586
+ * parser.c (cp_parser_init_declarator): Do not pop scope twice.
+
PR c++/18530
* cp-tree.h (CTOR_NAME): Remove.
(DTOR_NAME): Remove.
if (member_p)
{
if (pop_p)
- pop_scope (scope);
+ {
+ pop_scope (scope);
+ pop_p = false;
+ }
decl = grokfield (declarator, decl_specifiers,
initializer, /*asmspec=*/NULL_TREE,
/*attributes=*/NULL_TREE);
2004-11-24 Mark Mitchell <mark@codesourcery.com>
+ PR c++/18586
+ * g++.dg/template/crash27.C: New test.
+
PR c++/18530
* g++.dg/warn/Wshadow-3.C: New test.
--- /dev/null
+template <typename T>
+void f(int, T (*)() = 0);
+
+void g() {
+ typedef int A[2];
+ f<A>(0); // { dg-error "" }
+ typedef void F();
+ f<F>(0); // { dg-error "" }
+}