blob: 88e7ebf77ab78b0b4b6204cb33c2910c9b078e32 [file] [log] [blame]
// PR c++/33840
// { dg-do compile }
template<int> struct A
{
struct {} : 2; // { dg-error "expected ';' after struct" "expected" }
};
// { dg-error "ISO C.. forbids declaration" "declaration" { target *-*-* } 6 }
// { dg-error "10:ISO C.. prohibits anonymous" "anonymous" { target *-*-* } 6 }