// PR c++/96604 struct A { template operator T(); }; struct X {}; struct B { friend A::operator X(); };