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