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