1 // PR c++/20153 2 3 template <typename T> 4 void foo()5 foo() 6 { 7 union { struct { }; }; // { dg-error "prohibits anonymous struct" "anon" } 8 // { dg-error "not inside" "not inside" { target *-*-* } .-1 } 9 } 10