// Build don't link: template void f(T); class C { friend void f<>(double); int i; // ERROR - private }; template void f(T) { C c; c.i = 3; // ERROR - f is a friend, this is f. } int main() { f(7); }