• Home
  • Raw
  • Download

Lines Matching refs:T

11 template<typename T> 
12 T pi = T(3.1415926535897932385); // expected-note 2{{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()
70 template<typename T> T v; // expected-error {{redefinition of 'v' as different kind of symbol}}
73 template<typename T> T v; // expected-note {{previous definition is here}}
77 template<typename T> T v0; // expected-note {{previous definition is here}}
78 template<typename T> T v0; // expected-error {{redefinition of 'v0'}}
80 template<typename T> T v; // expected-note {{previous definition is here}}
81 template<typename T> int v; // expected-error {{redefinition of 'v'}}
83 template<typename T> extern int v1; // expected-note {{previous template declaration is here}}
87 template<typename T> T v;
92 … template<typename T, typename> T v; // expected-note 2{{previous template declaration is here}}
93 …template<typename T> T v; // expected-error {{too few template parameters in template redeclarat…
94 …template<typename T, typename, typename> T v; // expected-error {{too many template parameters in …
98 template<typename T> T v = T();
99 template<typename T> extern T v; // redeclaration is allowed \
101 …template<typename T> extern int v; // expected-error {{redeclaration of 'v' with a different ty…
104 …template<typename T> extern auto v; // expected-error {{declaration of variable 'v' with deduced…
107 template<typename T> T var = T(); // expected-note {{previous definition is here}}
113 …template<typename T> auto v0; // expected-error {{declaration of variable 'v0' with deduced type '…
114 template<typename T> auto v1 = T(); // expected-note {{previous definition is here}}
115 …template<typename T> int v1; // expected-error {{redefinition of 'v1' with a different type: 'in…
116 template<typename T> auto v2 = T(); // expected-note {{previous definition is here}}
117 template<typename T> T v2; // expected-error {{redefinition of 'v2'}}
118 template<typename T> auto v3 = T(); // expected-note {{previous definition is here}}
119 …template<typename T> extern T v3; // expected-error {{redeclaration of 'v3' with a different t…
120 template<typename T> auto v4 = T();
121 …template<typename T> extern auto v4; // expected-error {{declaration of variable 'v4' with deduc…
128 template<typename T>
129 T pi0a = T(3.1415926535897932385); // expected-note {{variable template 'pi0a' declared here}}
132 template<typename T>
133 T pi0b = T(3.1415926535897932385); // expected-note {{variable template 'pi0b' declared here}}
136 template<typename T>
137 T pi0c = T(3.1415926535897932385); // expected-note {{variable template 'pi0c' declared here}}
140 template<typename T>
141 T pi0 = T(3.1415926535897932385);
145 template<typename T>
146 …CONST T pi1a = T(3.1415926535897932385); // expected-note {{variable template 'pi1a' declared her…
149 template<typename T>
150 …CONST T pi1b = T(3.1415926535897932385); // expected-note {{variable template 'pi1b' declared her…
153 template<typename T>
154 CONST T pi1 = T(3.1415926535897932385);
160 template<typename T> auto var0 = T();
163 template<typename T> auto var = T();
182 template<typename T>
183 CONST int pi2<T,int> = 2;
185 template<typename T>
186 CONST int pi2<int,T> = 3;
207 template<typename T>
208 CONST int pi2<T,int> = 2; // expected-note {{partial specialization matches [with T = int]}}
210 template<typename T>
211 CONST int pi2<int,T> = 3; // expected-note {{partial specialization matches [with T = int]}}
220 template<typename T>
221 T pi0 = T(3.1415926535897932385);
226 template<typename T>
227 T pi1 = T(3.1415926535897932385);
230 template<typename T>
231 T pi2 = T(3.1415926535897932385);
234 template<typename T>
235 CONST T pi4 = T(3.1415926535897932385);
240 template<typename T>
241 T pi0 = T(3.1415926535897932385);
255 template<typename T>
256 CONST T pi1 = T(3.1415926535897932385);
263 template<typename T>
264 T pi0 = T(3.1415926535897932385); // expected-note {{variable template 'pi0' declared here}}
273 template<typename T> CONST int pi2<T,int> = 2;
277 template<typename T>
278 T pi0 = T(3.1415926535897932385);
288 template<typename T> CONST int pi2<T,int> = 2;
293 template<typename T, typename> auto var0 = T();
294 template<typename T> auto var0<T,int> = T();
297 template<typename T, typename> auto var = T();
298 template<typename T> T var<T,int> = T(5);
314 template<typename T> T* var = new T();
316 template<typename T> auto var<T*> = T(); // expected-note {{previous definition is here}}
317 …template<typename T> T var<T*> = T(); // expected-error {{redefinition of 'var' with a differe…
323 …template<typename T> T v = {1234}; // expected-warning {{implicit conversion from 'int' to 'char'…
341 template<typename T>
342 T* arr = new T[10]{T(10), T(23)};
362 template<typename T>
363 T pi0a = T(3.1415926535897932385);
376 template<typename T>
377 T pi0b = T(3.1415926535897932385);
389 template<typename T>
390T pi1a = T(3.1415926535897932385); // expected-note {{explicitly specialized declaration is here}}
395 template<typename T>
396T pi1b = T(3.1415926535897932385); // expected-note {{explicitly specialized declaration is here}}
431 template<typename T> int a; // expected-note {{variable template 'a' declared here}}
439 template<typename T> int a;
445 template<typename T> const auto x = 1;
451 template <typename T> int* f();
452 template <typename T> void f();
455 template <typename T> void g();