// PR c++/25638 struct A { ~A(); }; struct B : A { template friend A::~A(); // { dg-error "member template" } };