// PR c++/20153 template void foo() { union { struct { }; }; // { dg-error "18:ISO C\\+\\+ prohibits anonymous struct" } // { dg-error "18:anonymous struct not inside" "not inside" { target *-*-* } .-1 } }