1 2 3 4 5 6 7 8 9 10 11 12
//PR c++/26573 void foo() { struct A { static int i; }; // { dg-error "shall not have" } } template<typename T> void bar() { struct B { static int j; }; // { dg-error "shall not have" } }