Lines Matching full:template
6 template<typename T> void f(T) {}
7 template<typename T> static void g(T) {}
10 template<> static void f<int>(int); // expected-error{{explicit specialization has extraneous, inconsistent storage class 'static'}}
11 template static void f<float>(float); // expected-error{{explicit instantiation cannot have a storage class}}
13 template<> void f<double>(double);
14 template void f<long>(long);
16 template<> static void g<int>(int); // expected-warning{{explicit specialization cannot have a storage class}}
17 template static void g<float>(float); // expected-error{{explicit instantiation cannot have a storage class}}
19 template<> void g<double>(double);
20 template void g<long>(long);
22 template<typename T>
27 template<typename T>
30 template static int X<int>::value; // expected-error{{explicit instantiation cannot have a storage class}}
32 template<> static int X<float>::value; // expected-error{{'static' can only be specified inside the class definition}}