15 template void f(int); // ERROR - duplicate explicit instantiation
16 template int S<int>::t;
17 template int S<int>::t; // ERROR - duplicate explicit instantiation
18 template class S<double>;
19 template class S<double>; // ERROR - duplicate explicit instantiation
21 extern template void f(double); // WARNING - extern not allowed
22 inline template class S<float>; // WARNING - inline not allowed
27 template class S<void*>; // OK - explicit instantiation of partial
31 struct S<long double> {};
33 template class S<long double>; // OK - explicit instantiation after
36 void f(long double) {}
38 template void f(long double); // OK - explicit instantiation after
43 template void g(int); // ERROR - no definition of g.