• Home
  • Raw
  • Download

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 …
26 template<typename T, typename T0> static CONST T right = T(100);
27 template<typename T> static CONST T right<T,int> = T(5);
35 template<typename T, typename T0> static CONST T right;
36 template<typename T> static CONST T right<T,int>;
38 template<typename T, typename T0> CONST T B1::right = T(100);
39 template<typename T> CONST T B1::right<T,int> = T(5);
42 …template<typename T, typename T0> static CONST T right = T(100); // expected-note {{previous init…
43 …template<typename T> static CONST T right<T,int> = T(5); // expected-note {{previous init…
45 …template<typename T, typename T0> CONST T B2::right = T(100); // expected-error {{static data me…
46 …template<typename T> CONST T B2::right<T,int> = T(5); // expected-error {{static data me…
49 template<typename T, typename T0> static CONST T right = T(100);
50 template<typename T> static CONST T right<T,int> = T(5);
52 template<typename T, typename T0> CONST T B3::right;
53 template<typename T> CONST T B3::right<T,int>;
56 template<typename T, typename T0> static CONST T a;
57 template<typename T> static CONST T a<T,int> = T(100);
58 template<typename T, typename T0> static CONST T b = T(100);
59 template<typename T> static CONST T b<T,int>;
61 …template<typename T, typename T0> CONST T B4::a; // expected-error {{default initialization of an …
62 template<typename T> CONST T B4::a<T,int>;
66 template<typename T, typename T0> CONST T B4::b;
67 …template<typename T> CONST T B4::b<T,int>; // expected-error {{default initialization of an object…
74 template<typename T> static T wrong_inst_undefined = T(10); // expected-note {{refers here}}
75 …template<typename T> static T wrong_inst_defined = T(10); // expected-error {{non-const static dat…
76 template<typename T> static T wrong_inst_out_of_line;
81 template<typename T> T A::wrong_inst_defined;
85 template<typename T> T A::wrong_inst_out_of_line = T(10);
89 template<typename T> static T wrong_inst; // expected-note {{refers here}}
90 …template<typename T> static T wrong_inst<T*> = T(100); // expected-error {{non-const static data m…
92 template<typename T> static T wrong_inst_fixed;
93 template<typename T> static T wrong_inst_fixed<T*>;
101 template<typename T> T B::wrong_inst_fixed = T(100);
105 template<typename T> static CONST T right_inst = T(10); // expected-note {{here}}
106 template<typename T> static CONST T right_inst<T*> = T(100); // expected-note {{here}}
131 template<typename T> T* C1a::Data<T*> = new T();
138 template<typename T> CONST T* C1b::Data<T*> = (T*)(0);
159 …template<typename T> constexpr T wrong; // expected-error {{member 'wrong' declared as a…
161 …template<typename T> constexpr T wrong_init = 5; // expected-error {{non-static data member c…
162 template<typename T, typename T0> static constexpr T right = T(100);
163 template<typename T> static constexpr T right<T,int> = 5;
164 …template<typename T> constexpr int right<int,T>; // expected-error {{member 'right' declared as a…
166 …template<typename T> constexpr float right<float,T> = 5; // expected-error {{non-static data memb…
177 template<typename T>
184 template<typename T> template<typename U> const U D0<T>::Data<U*>;
186 template<typename T>
191 template<typename T>
192 template<typename U> U* D1<T>::Data<U*> = (U*)(0);
196 template<typename T>
206 template<typename T>
214 template<typename T>
228 template<typename T>
269 template<typename T> extern T var[];
270 template<typename T> T var[] = { 1, 2, 3 };
272 template<typename T> char var<T*>[] = "pointer";
280 template<typename T> struct A {
281 template<typename U> static T x[];
282 template<typename U> static T y[];
284 template<typename...U> static T y<tuple<U...> >[];
288 template<typename T> template<typename U> T A<T>::x[sizeof(U)];
291 template<typename T> template<typename...U> T A<T>::y<tuple<U...> >[] = { U()... };
297 template<typename T> static int A; // expected-note 4{{here}}
300 template<typename T> void f() { in f()
301 …typename T::template A<int> a; // expected-error {{template name refers to non-type template 'S::A… in f()
303 template<typename T> void g() { in g()
304T::template A<int>::B = 0; // expected-error {{template name refers to non-type template 'S::A'}} in g()
306 template<typename T> void h() { in h()
307 … class T::template A<int> c; // expected-error {{template name refers to non-type template 'S::A'}} in h()
310 template<typename T>
311 …struct X : T::template A<int> {}; // expected-error {{template name refers to non-type template 'S…
333 template<typename T> struct helper {};
334 template<typename T> class A {
335 …template <typename> static helper<typename T::error> x; // expected-error {{type 'int' cannot be …
345 template<class T, T N> constexpr static T Var = N;
352 template<class T> struct A {
353 template<class U, T N, U M> static T&& Var;
355 template<class T> template<class U, T N, U M> T&& A<T>::Var = T(N + M);
365 template<class T>
366 static constexpr T value = 0;