Lines Matching full:variable
19 // expected-error@-2 {{constexpr variable declaration must be a definition}}
32 // template arguments are not deduced for uses of variable templates.
33 int ipi = pi; // expected-error {{cannot refer to variable template 'pi' without a template argument list}}
34 int icpi = cpi; // expected-error {{cannot refer to variable template 'cpi' without a template argument list}}
105 template<typename T> extern auto v; // expected-error {{declaration of variable 'v' with type 'auto' requires an initializer}}
114 template<typename T> auto v0; // expected-error {{declaration of variable 'v0' with type 'auto' requires an initializer}}
122 template<typename T> extern auto v4; // expected-error {{declaration of variable 'v4' with type 'auto' requires an initializer}}
130 T pi0a = T(3.1415926535897932385); // expected-note {{variable template 'pi0a' declared here}}
134 T pi0b = T(3.1415926535897932385); // expected-note {{variable template 'pi0b' declared here}}
138 T pi0c = T(3.1415926535897932385); // expected-note {{variable template 'pi0c' declared here}}
147 CONST T pi1a = T(3.1415926535897932385); // expected-note {{variable template 'pi1a' declared here}}
151 CONST T pi1b = T(3.1415926535897932385); // expected-note {{variable template 'pi1b' declared here}}
162 template auto var0<int>; // expected-error {{'auto' variable template instantiation is not allowed}}
265 T pi0 = T(3.1415926535897932385); // expected-note {{variable template 'pi0' declared here}}
329 int k = v<char>; // expected-note {{in instantiation of variable template specialization 'narrowing::v<char>' requested here}}
413 template<> double pi1a<double> = 5.2; // expected-error {{variable template specialization of 'pi1a' must originally be declared in namespace 'n1'}}
427 // expected-error {{variable template specialization of 'pi1b' must originally be declared in namespace 'n1'}}
433 template<typename T> int a; // expected-note {{variable template 'a' declared here}}
434 a<int>::b c; // expected-error {{qualified name refers into a specialization of variable template 'a'}}
436 class a<int> {}; // expected-error {{identifier followed by '<' indicates a class template specialization but 'a' refers to a variable template}}
455 template<> int f<double>; // expected-error {{no variable template matches specialization; did you mean to use 'f' as function template instead?}}
458 template<> int g<double>; // expected-error {{no variable template matches specialization; did you mean to use 'g' as function template instead?}}