Lines Matching full:template
3 template<typename T> void f0(T); // expected-note{{here}}
4 template void f0(int); // expected-error{{explicit instantiation of undefined function template}}
6 template<typename T>
15 template void X0<int>::f1(); // expected-error{{explicit instantiation of undefined member function}}
17 template int X0<int>::value; // expected-error{{explicit instantiation of undefined static data member}}
19 template<> void f0(long); // expected-note{{previous template specialization is here}}
20 template void f0(long); // expected-warning{{explicit instantiation of 'f0<long>' that occurs after an explicit specialization will be ignored}}
22 template<> void X0<long>::f1(); // expected-note{{previous template specialization is here}}
23 template void X0<long>::f1(); // expected-warning{{explicit instantiation of 'f1' that occurs after an explicit specialization will be ignored}}
25 template<> struct X0<long>::Inner; // expected-note{{previous template specialization is here}}
26 template struct X0<long>::Inner; // expected-warning{{explicit instantiation of 'Inner' that occurs after an explicit specialization will be ignored}}
28 template<> long X0<long>::value; // expected-note{{previous template specialization is here}}
29 template long X0<long>::value; // expected-warning{{explicit instantiation of 'value' that occurs after an explicit specialization will be ignored}}
31 template<> struct X0<double>; // expected-note{{previous template specialization is here}}
32 template struct X0<double>; // expected-warning{{explicit instantiation of 'X0<double>' that occurs after an explicit specialization will be ignored}}
36 template <class T> class foo {
40 template <> int foo<char>::compare(char x, char y);
41 template <class T> int foo<T>::compare(T x, T y) {
43 // inappropriately instantiating this template.
46 extern template class foo<char>; // expected-warning {{extern templates are a C++11 extension}}
47 template class foo<char>;