OSDN Git Service

* parser.c (cp_parser_class_specifier): Set class location to that
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / error17.C
1 // PR c++/20153
2
3 template <typename T>
4 void
5 foo()
6 {
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 }
10 }