// PR c++/84820 struct A {}; template struct B : A { B() { A(&A::foo); // { dg-error "foo" } } }; B<0> b;