[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / error17.C
blob30a693f84d123e87c3ea375abc731ef85050477c
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 *-*-* } .-1 }