Home | History | Annotate | Download | only in SemaTemplate

Lines Matching full:template

4 template<typename T, typename U = T> class X0 { };
7 template<typename T, typename U = T> class X1 { };
11 template class X0<int, float>;
12 template class X0<int>; // expected-note{{previous}}
14 template class N::X1<int>;
15 template class ::N::X1<int, float>;
21 // after 'template'.
22 template class X0<double> { }; // expected-error{{explicit specialization}}
26 template class X0<int, int>; // expected-error{{duplicate}}
28 template<> class X0<char> { }; // expected-note{{previous}}
29 template class X0<char>; // expected-warning{{ignored}}
32 template class X0<short>;
36 // definition of the template we're instantiating.
37 template<typename T> struct X2; // expected-note{{declared here}}
39 template struct X2<float>; // expected-error{{undefined template}}
41 template<typename T>
46 template struct X2<int>; // okay
47 template struct X2<int&>; // expected-note{{in instantiation of}}
50 template<typename T> struct X3 {
58 template struct X3<int&>; // expected-note{{instantiation}}
60 template<typename T> struct X4 {
71 template struct X4<int&>; // expected-note{{instantiation}}
72 template struct X4<float&>; // expected-note{{instantiation}}
77 template<typename T>
92 template struct N2::X5<void>::Inner2;
95 template struct X5<int&>::Inner2; // expected-note{{instantiation}}
98 template struct X5<float&>::Inner2; // expected-note{{instantiation}}
101 template struct N2::X5<int>::Inner2; // expected-warning {{explicit instantiation of 'Inner2' not in a namespace enclosing 'N2'}}
110 template struct X6::Inner; // expected-error{{non-templated}}
113 template <typename T>
116 template <>
119 template <typename U>
124 template <> // expected-warning{{extraneous template parameter list}}
125 template <>
131 template<typename T> struct X7 { }; // expected-note{{here}}
134 template<typename T> struct X8 { };
137 template struct X7<int>;
138 template struct Inner::X8<int>;
141 template<typename T> struct X9 { }; // expected-note{{here}}
143 template struct ::N1::Inner::X8<float>;
148 template struct X7<double>; // expected-warning{{must occur in namespace}}
150 template struct X9<float>; // expected-warning{{must occur at global scope}}