Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / g++.dg / other / bitfield3.C
blobb9726c26a51f759d2cbcec495bd374da89b7aafc
1 // PR c++/33841
2 // { dg-do compile }
4 template<int> struct A
6   struct {} : 2;        // { dg-error "with non-integral type" }
7 };
9 template<int> struct B
11   int a;
12   struct {} : 2;        // { dg-error "with non-integral type" }
13   int b;
16 struct C : A<0> {};
17 struct D : B<0> {};