template<class A> struct S { template<class B> friend S<B> f(B) {return S<B>{};} }; int main() { f(5); }
Standard input is empty
prog.cpp: In function ‘int main()’:
prog.cpp:6:5: error: ‘f’ was not declared in this scope
f(5);
^
Standard output is empty