Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / error17.C
blobf34234da79f621d00a9708c9e3620fd173f68337
1 // PR c++/20153
3 template <typename T>
4 void
5 foo()
7   union { struct { }; }; // { dg-error "prohibits anonymous struct" "anon" }
8   // { dg-error "not inside" "not inside" { target *-*-* } 7 }
9   // { dg-warning "no members" "no members" { target *-*-* } 7 }