Lines Matching refs:CONST

5 #define CONST const
12 template<typename T> CONST T wrong; // expected-error {{member 'wrong' declared as a template}}
13 template<typename T> CONST T wrong_init = 5; // expected-error {{member 'wrong_init' declared as a template}}
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<>'}} \
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>;
56 template<typename T, typename T0> static CONST T a;
57 template<typename T> static CONST T a<T,int> = T(100);
58 template<typename T, typename T0> static CONST T b = T(100);
59 template<typename T> static CONST T b<T,int>;
61 template<typename T, typename T0> CONST T B4::a; // expected-error {{default initialization of an object of const type 'const int'}}
62 template<typename T> CONST T B4::a<T,int>;
63 template CONST int B4::a<int,char>; // expected-note {{in instantiation of}}
64 template CONST int B4::a<int,int>;
66 template<typename T, typename T0> CONST T B4::b;
67 template<typename T> CONST T B4::b<T,int>; // expected-error {{default initialization of an object of const type 'const int'}}
68 template CONST int B4::b<int,char>;
69 template CONST int B4::b<int,int>; // expected-note {{in instantiation of}}
105 template<typename T> static CONST T right_inst = T(10); // expected-note {{here}}
106 template<typename T> static CONST T right_inst<T*> = T(100); // expected-note {{here}}
108 template CONST int C::right_inst<int>; // expected-error {{undefined variable template}}
109 template CONST int C::right_inst<int*>; // expected-error {{undefined variable template}}
115 template<typename U> static CONST U Data<U*> = U(); // expected-note {{here}}
118 template<typename U> static CONST U Data2<U*> = U();
136 template<typename U> static CONST U* Data<U*>; // Okay, with out-of-line definition
138 template<typename T> CONST T* C1b::Data<T*> = (T*)(0);
139 template CONST int* C1b::Data<int*>;
180 template<typename U> static CONST U Data<U*> = U();
182 template CONST int D0<float>::Data<int*>;
208 template<typename U> static CONST U Data = U(100); // expected-note {{here}}
217 template<typename U> static CONST U Data<U*> = U(10); // expected-note {{previous definition is here}}
231 template<typename U> static CONST U Data<U*> = U(10); // expected-note {{previous definition is here}}