Lines Matching refs:right

8   template<typename T, typename T0> static const T right = T(100);
9 template<typename T> static const T right<T,int> = 5;
10 template<typename T> const int right<int,T>; // expected-error {{member 'right' declared as a template}}
11 template<typename T> const float right<float,T> = 5; // expected-error {{member 'right' declared as a template}}
12 template<> static const int right<int,int> = 7; // expected-error {{explicit specialization of 'right' in class scope}}
13 template<> static const float right<float,int>; // expected-error {{explicit specialization of 'right' in class scope}}
14 template static const int right<int,int>; // expected-error {{template specialization requires 'template<>'}} \
15 // expected-error {{explicit specialization of 'right' in class scope}}
20 template<typename T, typename T0> static const T right = T(100);
21 template<typename T> static const T right<T,int> = T(5);
23 template<> const int B0::right<int,int> = 7;
24 template const int B0::right<int,int>;
25 template<> const int B0::right<int,float>;
26 template const int B0::right<int,float>;
29 template<typename T, typename T0> static const T right;
30 template<typename T> static const T right<T,int>;
32 template<typename T, typename T0> const T B1::right = T(100);
33 template<typename T> const T B1::right<T,int> = T(5);
36 template<typename T, typename T0> static const T right = T(100); // expected-note {{previous definition is here}}
37 template<typename T> static const T right<T,int> = T(5); // expected-note {{previous definition is here}}
39 template<typename T, typename T0> const T B2::right = T(100); // expected-error {{redefinition of 'right'}}
40 template<typename T> const T B2::right<T,int> = T(5); // expected-error {{redefinition of 'right'}}
43 template<typename T, typename T0> static const T right = T(100);
44 template<typename T> static const T right<T,int> = T(5);
46 template<typename T, typename T0> const T B3::right; // expected-error {{forward declaration of variable template cannot have a nested name specifier}}
47 template<typename T> const T B3::right<T,int>; // expected-error {{forward declaration of variable template partial specialization cannot have a nested name specifier}}
50 template<typename T, typename T0> static const T right;
51 template<typename T> static const T right<T,int>;
55 template<typename T, typename T0> const T B4::right; // expected-error {{forward declaration of variable template cannot have a nested name specifier}}
56 template<typename T> const T B4::right<T,int>; // expected-error {{forward declaration of variable template partial specialization cannot have a nested name specifier}} \
58 template const int B4::right<int,int>; // expected-error {{explicit instantiation of undefined static data member template 'right' of class}}