* decl.c (start_enum): If enumtype is error_mark_node, exit early.
* g++.dg/cpp0x/enum2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142946
138bc75d-0d04-0410-961f-
82ee72b054a4
+2008-12-29 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/38637
+ * decl.c (start_enum): If enumtype is error_mark_node, exit early.
+
2008-12-28 Jakub Jelinek <jakub@redhat.com>
PR c++/38650
enumtype = pushtag (name, enumtype, /*tag_scope=*/ts_current);
}
+ if (enumtype == error_mark_node)
+ return enumtype;
+
if (scoped_enum_p)
{
SET_SCOPED_ENUM_P (enumtype, 1);
+2008-12-29 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/38637
+ * g++.dg/cpp0x/enum2.C: New test.
+
2008-12-28 Andrew Pinski <pinskia@gmail.com>
PR libobjc/36610
--- /dev/null
+// PR c++/38637
+// { dg-do compile }
+// { dg-options "-std=c++0x" }
+
+template<int> enum E : int { e }; // { dg-error "template declaration of" }