• Home
  • Raw
  • Download

Lines Matching refs:T

11 template<typename T> 
12 T pi = T(3.1415926535897932385); // expected-note {{template is declared here}}
14 template<typename T>
15 CONST T cpi = T(3.1415926535897932385); // expected-note {{template is declared here}}
17 template<typename T> extern CONST T vc;
37 template<typename T>
38 T circular_area(T r) { in circular_area()
39 return pi<T> * r * r; in circular_area()
42 template<typename T>
43 CONST T const_circular_area(T r) { in const_circular_area()
44 return cpi<T> * r * r; in const_circular_area()
71 template<typename T> T v; // expected-error {{redefinition of 'v' as different kind of symbol}}
74 template<typename T> T v; // expected-note {{previous definition is here}}
78 template<typename T> T v0; // expected-note {{previous definition is here}}
79 template<typename T> T v0; // expected-error {{redefinition of 'v0'}}
81 template<typename T> T v; // expected-note {{previous definition is here}}
82 template<typename T> int v; // expected-error {{redefinition of 'v'}}
84 template<typename T> extern int v1; // expected-note {{previous template declaration is here}}
88 template<typename T> T v;
93 … template<typename T, typename> T v; // expected-note 2{{previous template declaration is here}}
94 …template<typename T> T v; // expected-error {{too few template parameters in template redeclarat…
95 …template<typename T, typename, typename> T v; // expected-error {{too many template parameters in …
99 template<typename T> T v = T();
100 template<typename T> extern T v; // redeclaration is allowed \
102 …template<typename T> extern int v; // expected-error {{redeclaration of 'v' with a different ty…
105 …template<typename T> extern auto v; // expected-error {{declaration of variable 'v' with type 'a…
108 template<typename T> T var = T(); // expected-note {{previous definition is here}}
114 …template<typename T> auto v0; // expected-error {{declaration of variable 'v0' with type 'auto' re…
115 template<typename T> auto v1 = T(); // expected-note {{previous definition is here}}
116 …template<typename T> int v1; // expected-error {{redefinition of 'v1' with a different type: 'in…
117 template<typename T> auto v2 = T(); // expected-note {{previous definition is here}}
118 template<typename T> T v2; // expected-error {{redefinition of 'v2'}}
119 template<typename T> auto v3 = T(); // expected-note {{previous definition is here}}
120 …template<typename T> extern T v3; // expected-error {{redeclaration of 'v3' with a different t…
121 template<typename T> auto v4 = T();
122 …template<typename T> extern auto v4; // expected-error {{declaration of variable 'v4' with type …
129 template<typename T>
130 T pi0a = T(3.1415926535897932385); // expected-note {{variable template 'pi0a' declared here}}
133 template<typename T>
134 T pi0b = T(3.1415926535897932385); // expected-note {{variable template 'pi0b' declared here}}
137 template<typename T>
138 T pi0c = T(3.1415926535897932385); // expected-note {{variable template 'pi0c' declared here}}
141 template<typename T>
142 T pi0 = T(3.1415926535897932385);
146 template<typename T>
147 …CONST T pi1a = T(3.1415926535897932385); // expected-note {{variable template 'pi1a' declared her…
150 template<typename T>
151 …CONST T pi1b = T(3.1415926535897932385); // expected-note {{variable template 'pi1b' declared her…
154 template<typename T>
155 CONST T pi1 = T(3.1415926535897932385);
161 template<typename T> auto var0 = T();
164 template<typename T> auto var = T();
183 template<typename T>
184 CONST int pi2<T,int> = 2;
186 template<typename T>
187 CONST int pi2<int,T> = 3;
208 template<typename T>
209 CONST int pi2<T,int> = 2; // expected-note {{partial specialization matches [with T = int]}}
211 template<typename T>
212 CONST int pi2<int,T> = 3; // expected-note {{partial specialization matches [with T = int]}}
221 template<typename T>
222 T pi0 = T(3.1415926535897932385);
227 template<typename T>
228 T pi1 = T(3.1415926535897932385);
231 template<typename T>
232 T pi2 = T(3.1415926535897932385);
235 template<typename T>
236 CONST T pi4 = T(3.1415926535897932385);
241 template<typename T>
242 T pi0 = T(3.1415926535897932385);
256 template<typename T>
257 CONST T pi1 = T(3.1415926535897932385);
264 template<typename T>
265 T pi0 = T(3.1415926535897932385); // expected-note {{variable template 'pi0' declared here}}
274 template<typename T> CONST int pi2<T,int> = 2;
278 template<typename T>
279 T pi0 = T(3.1415926535897932385);
289 template<typename T> CONST int pi2<T,int> = 2;
294 template<typename T, typename> auto var0 = T();
295 template<typename T> auto var0<T,int> = T();
298 template<typename T, typename> auto var = T();
299 template<typename T> T var<T,int> = T(5);
315 template<typename T> T* var = new T();
317 template<typename T> auto var<T*> = T(); // expected-note {{previous definition is here}}
318 …template<typename T> T var<T*> = T(); // expected-error {{redefinition of 'var' with a differe…
324 …template<typename T> T v = {1234}; // expected-warning {{implicit conversion from 'int' to 'char'…
342 template<typename T>
343 T* arr = new T[10]{T(10), T(23)};
363 template<typename T>
364 T pi0a = T(3.1415926535897932385);
377 template<typename T>
378 T pi0b = T(3.1415926535897932385);
390 template<typename T>
391T pi1a = T(3.1415926535897932385); // expected-note {{explicitly specialized declaration is here}}
396 template<typename T>
397T pi1b = T(3.1415926535897932385); // expected-note {{explicitly specialized declaration is here}}
433 template<typename T> int a; // expected-note {{variable template 'a' declared here}}
441 template<typename T> int a;
447 template<typename T> const auto x = 1;
453 template <typename T> int* f();
454 template <typename T> void f();
457 template <typename T> void g();