PR c++/43076
* pt.c (push_template_decl_real): Deal better with running out of
scopes before running out of template parms.
From-SVN: r157842
2010-03-30 Jason Merrill <jason@redhat.com>
+ PR c++/43076
+ * pt.c (push_template_decl_real): Deal better with running out of
+ scopes before running out of template parms.
+
PR c++/41185
PR c++/41786
* parser.c (cp_parser_direct_declarator): Don't allow VLAs in
if (current == decl)
current = ctx;
+ else if (current == NULL_TREE)
+ /* Can happen in erroneous input. */
+ break;
else
current = (TYPE_P (current)
? TYPE_CONTEXT (current)
2010-03-30 Jason Merrill <jason@redhat.com>
+ PR c++/43076
+ * g++.dg/template/error-recovery1.C: New.
+
PR c++/41786
* g++.dg/parse/ambig5.C: New.
--- /dev/null
+// PR c++/43076
+
+struct S;
+template < typename > struct T
+{
+ template < typename >
+ template < bool > struct T < S > // { dg-error "" }
+ {
+ void f () { // { dg-error "" }