blob: 46d5ee2ab784fb17c4ab446f3b426224609ff89e (
plain)
1
2
3
4
5
6
7
8
9
|
// 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 "ISO C.. prohibits anonymous" "anonymous" { target *-*-* } 6 }
|