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 {{member 'right' declared as a template}}
17 template<typename T> CONST float right<float,T> = 5; // expected-error {{member 'right' declared as a template}}
18 template<> static CONST int right<int,int> = 7; // expected-error {{explicit specialization of 'right' in class scope}}
19 template<> static CONST float right<float,int>; // expected-error {{explicit specialization of 'right' in class scope}}
20 template static CONST int right<int,int>; // expected-error {{template specialization requires 'template<>'}} \
21 // expected-error {{explicit specialization of 'right' in class scope}}
26 template<typename T, typename T0> static CONST T right = T(100);
27 template<typename T> static CONST T right<T,int> = T(5);
29 template<> CONST int B0::right<int,int> = 7;
30 template CONST int B0::right<int,int>;
31 template<> CONST int B0::right<int,float>;
32 template CONST int B0::right<int,float>;
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 initialization is here}}
43 template<typename T> static CONST T right<T,int> = T(5); // expected-note {{previous initialization is here}}
45 template<typename T, typename T0> CONST T B2::right = T(100); // expected-error {{static data member 'right' already has an initializer}}
46 template<typename T> CONST T B2::right<T,int> = T(5); // expected-error {{static data member 'right' already has an initializer}}
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>;
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 template}} \
166 template<typename T> constexpr float right<float,T> = 5; // expected-error {{non-static data member cannot be constexpr; did you intend to make it static?}}
167 template<> static constexpr int right<int,int> = 7; // expected-error {{explicit specialization of 'right' in class scope}}
168 template<> static constexpr float right<float,int>; // expected-error {{explicit specialization of 'right' in class scope}}
169 template static constexpr int right<int,int>; // expected-error {{template specialization requires 'template<>'}} \
170 // expected-error {{explicit specialization of 'right' in class scope}}