PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / bitfld2.C
blob46d5ee2ab784fb17c4ab446f3b426224609ff89e
1 // PR c++/33840
2 // { dg-do compile }
4 template<int> struct A
6   struct {} : 2;   // { dg-error "expected ';' after struct" "expected" }
7 };
8 // { dg-error "ISO C.. forbids declaration" "declaration" { target *-*-* } 6 }
9 // { dg-error "ISO C.. prohibits anonymous" "anonymous" { target *-*-* } 6 }