Debian Codegraph @

gcc/testsuite/g++.dg/template/error17.C

raw
1 // PR c++/20153
2
3 template <typename T>
4 void
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 }