Lines Matching full:right
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 {{non-static data member 'right' cannot be declared as a template}}
17 template<typename T> CONST float right<float,T> = 5; // expected-error {{non-static data member 'right' cannot be declared as a template}}
24 template<> CONST int right<int,int> = 7;
25 template<> CONST float right<float,int>;
26 template static CONST int right<int,int>; // expected-error {{expected '<' after 'template'}}
31 template<typename T, typename T0> static CONST T right = T(100);
32 template<typename T> static CONST T right<T,int> = T(5);
34 template<> CONST int B0::right<int,int> = 7; // expected-note {{previous}}
35 template CONST int B0::right<int,int>; // expected-warning {{has no effect}}
36 template<> CONST int B0::right<int,float>; // expected-note {{previous}}
37 template CONST int B0::right<int,float>; // expected-warning {{has no effect}}
40 template<typename T, typename T0> static CONST T right;
41 template<typename T> static CONST T right<T,int>;
43 template<typename T, typename T0> CONST T B1::right = T(100);
44 template<typename T> CONST T B1::right<T,int> = T(5);
47 template<typename T, typename T0> static CONST T right = T(100); // expected-note {{previous initialization is here}}
48 template<typename T> static CONST T right<T,int> = T(5); // expected-note {{previous initialization is here}}
50 template<typename T, typename T0> CONST T B2::right = T(100); // expected-error {{static data member 'right' already has an initializer}}
51 template<typename T> CONST T B2::right<T,int> = T(5); // expected-error {{static data member 'right' already has an initializer}}
54 template<typename T, typename T0> static CONST T right = T(100);
55 template<typename T> static CONST T right<T,int> = T(5);
57 template<typename T, typename T0> CONST T B3::right;
58 template<typename T> CONST T B3::right<T,int>;
167 template<typename T, typename T0> static constexpr T right = T(100);
168 template<typename T> static constexpr T right<T,int> = 5;
169 template<typename T> constexpr int right<int,T>; // expected-error {{non-static data member 'right' cannot be declared as a template}}
170 // expected-error@-1 {{declaration of constexpr static data member 'right<int, T>' requires an initializer}}
171 template<typename T> constexpr float right<float,T> = 5; // expected-error {{non-static data member 'right' cannot be declared as a template}}
172 template<> constexpr int right<int,int> = 7;
173 template<> constexpr float right<float, int>; // expected-error {{declaration of constexpr static data member 'right<float, int>' requires an initializer}}
174 template static constexpr int right<int,int>; // expected-error {{expected '<' after 'template'}}