1 // PR c++/84820 2 3 struct A {}; 4 5 template<int> struct B : A 6 { BB7 B() 8 { 9 A(&A::foo); // { dg-error "foo" } 10 } 11 }; 12 13 B<0> b; 14