Lines Matching refs:T
12 …template<typename T> CONST T wrong; // expected-error {{member 'wrong' declared as a tem…
13 …template<typename T> CONST T wrong_init = 5; // expected-error {{member 'wrong_init' declared…
14 template<typename T, typename T0> static CONST T right = T(100);
15 template<typename T> static CONST T right<T,int> = 5;
16 …template<typename T> CONST int right<int,T>; // expected-error {{member 'right' declared as a tem…
17 …template<typename T> CONST float right<float,T> = 5; // expected-error {{member 'right' declared …
25 template<typename T, typename T0> static CONST T right = T(100);
26 template<typename T> static CONST T right<T,int> = T(5);
34 template<typename T, typename T0> static CONST T right;
35 template<typename T> static CONST T right<T,int>;
37 template<typename T, typename T0> CONST T B1::right = T(100);
38 template<typename T> CONST T B1::right<T,int> = T(5);
41 …template<typename T, typename T0> static CONST T right = T(100); // expected-note {{previous init…
42 …template<typename T> static CONST T right<T,int> = T(5); // expected-note {{previous init…
44 …template<typename T, typename T0> CONST T B2::right = T(100); // expected-error {{static data me…
45 …template<typename T> CONST T B2::right<T,int> = T(5); // expected-error {{static data me…
48 template<typename T, typename T0> static CONST T right = T(100);
49 template<typename T> static CONST T right<T,int> = T(5);
51 template<typename T, typename T0> CONST T B3::right;
52 template<typename T> CONST T B3::right<T,int>;
55 template<typename T, typename T0> static CONST T a;
56 template<typename T> static CONST T a<T,int> = T(100);
57 template<typename T, typename T0> static CONST T b = T(100);
58 template<typename T> static CONST T b<T,int>;
60 …template<typename T, typename T0> CONST T B4::a; // expected-error {{default initialization of an …
61 template<typename T> CONST T B4::a<T,int>;
65 template<typename T, typename T0> CONST T B4::b;
66 …template<typename T> CONST T B4::b<T,int>; // expected-error {{default initialization of an object…
73 template<typename T> static T wrong_inst_undefined = T(10); // expected-note {{refers here}}
74 …template<typename T> static T wrong_inst_defined = T(10); // expected-error {{non-const static dat…
75 template<typename T> static T wrong_inst_out_of_line;
80 template<typename T> T A::wrong_inst_defined;
84 template<typename T> T A::wrong_inst_out_of_line = T(10);
88 template<typename T> static T wrong_inst; // expected-note {{refers here}}
89 …template<typename T> static T wrong_inst<T*> = T(100); // expected-error {{non-const static data m…
91 template<typename T> static T wrong_inst_fixed;
92 template<typename T> static T wrong_inst_fixed<T*>;
100 template<typename T> T B::wrong_inst_fixed = T(100);
104 template<typename T> static CONST T right_inst = T(10); // expected-note {{here}}
105 template<typename T> static CONST T right_inst<T*> = T(100); // expected-note {{here}}
130 template<typename T> T* C1a::Data<T*> = new T();
137 template<typename T> CONST T* C1b::Data<T*> = (T*)(0);
158 …template<typename T> constexpr T wrong; // expected-error {{member 'wrong' declared as a…
160 …template<typename T> constexpr T wrong_init = 5; // expected-error {{non-static data member c…
161 template<typename T, typename T0> static constexpr T right = T(100);
162 template<typename T> static constexpr T right<T,int> = 5;
163 …template<typename T> constexpr int right<int,T>; // expected-error {{member 'right' declared as a…
165 …template<typename T> constexpr float right<float,T> = 5; // expected-error {{non-static data memb…
175 template<typename T>
182 template<typename T> template<typename U> const U D0<T>::Data<U*>;
184 template<typename T>
189 template<typename T>
190 template<typename U> U* D1<T>::Data<U*> = (U*)(0);
194 template<typename T>
204 template<typename T>
212 template<typename T>
226 template<typename T>
267 template<typename T> extern T var[];
268 template<typename T> T var[] = { 1, 2, 3 };
270 template<typename T> char var<T*>[] = "pointer";
278 template<typename T> struct A {
279 template<typename U> static T x[];
280 template<typename U> static T y[];
282 template<typename...U> static T y<tuple<U...> >[];
286 template<typename T> template<typename U> T A<T>::x[sizeof(U)];
289 template<typename T> template<typename...U> T A<T>::y<tuple<U...> >[] = { U()... };
295 template<typename T> static int A; // expected-note 4{{here}}
298 template<typename T> void f() { in f()
299 …typename T::template A<int> a; // expected-error {{template name refers to non-type template 'S::t… in f()
301 template<typename T> void g() { in g()
302 …T::template A<int>::B = 0; // expected-error {{template name refers to non-type template 'S::templ… in g()
304 template<typename T> void h() { in h()
305 …class T::template A<int> c; // expected-error {{template name refers to non-type template 'S::temp… in h()
308 template<typename T>
309 …struct X : T::template A<int> {}; // expected-error {{template name refers to non-type template 'S…
331 template<typename T> struct helper {};
332 template<typename T> class A {
333 …template <typename> static helper<typename T::error> x; // expected-error {{type 'int' cannot be …
343 template<class T, T N> constexpr static T Var = N;
350 template<class T> struct A {
351 template<class U, T N, U M> static T&& Var;
353 template<class T> template<class U, T N, U M> T&& A<T>::Var = T(N + M);
363 template<class T>
364 static constexpr T value = 0;
389 template<typename T>
390 …int &f() { return T::template n; } // expected-error {{use of variable template 'n' requires templ… in f()
408 template <class T>
410 constexpr int val = v<T>; in mf()