// PR c++/23307 class A { template static void f(X&); // { dg-error "" } inline void A::f(X&); // { dg-error "f|expected|not been declared" } };