blob: 7803a1e89efdd0f4eb418c3cc9127ab61ce349ab [file] [log] [blame]
// PR c++/20153
template <typename T>
void
foo()
{
union { struct { }; }; // { dg-error "18:ISO C\\+\\+ prohibits anonymous struct" }
// { dg-error "18:anonymous struct not inside" "not inside" { target *-*-* } .-1 }
}