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