1 // PR c++/30299 2 3 struct A 4 { 5 int i; 6 }; 7 8 template<void> struct B : A // { dg-error "not a valid type" } 9 { BB10 B() { this->i; } 11 }; 12