3 template<typename T> void f(T);
7 template<typename T> friend void f(T) {}
8 template<typename T> friend void g(T) {}
9 template<typename T> friend void h(T) {}
12 template<typename T> void h(T);
18 g(1); // { dg-error "3:'g' was not declared in this scope" }