// Build don't link: template class S { protected: template void f(U); // ERROR - is protected private: template void g(U); // ERROR - is private }; void f() { S s; s.f(3); // ERROR - within this context s.g(2.0); // ERROR - within this context }