1 2 3 4 5 6 7 8
// PR c++/25666 struct A { ~A(); }; struct B { template<int> friend A::~A(); // { dg-error "member template" } };