2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
PR c++/33840
* g++.dg/diagnostic/bitfld2.C: New.
From-SVN: r174642
+2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
+
+ PR c++/33840
+ * g++.dg/diagnostic/bitfld2.C: New.
+
2011-06-04 Jakub Jelinek <jakub@redhat.com>
PR target/49281
--- /dev/null
+// PR c++/33840
+// { dg-do compile }
+
+template<int> struct A
+{
+ struct {} : 2; // { dg-error "expected ';' after struct" }
+};
+// { dg-error "ISO C.. forbids declaration" "" { target *-*-* } 6 }
+// { dg-error "ISO C.. prohibits anonymous" "" { target *-*-* } 6 }