// Build don't link: template void f(T) {} // ERROR - previously defined here template struct S { template friend void f(T) {} // ERROR - redeclaration }; S si;