struct A { }; template struct S : public A { using A::operator(); // { dg-error "has not been declared" } };