Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:redefinition

66     template<typename T> T v; // expected-error {{redefinition of 'v' as different kind of symbol}}
70 int v; // expected-error {{redefinition of 'v' with a different type: 'int' vs 'T'}}
74 template<typename T> T v0; // expected-error {{redefinition of 'v0'}}
77 template<typename T> int v; // expected-error {{redefinition of 'v'}}
100 template<typename T> extern int v; // expected-error {{redefinition of 'v' with a different type: 'int' vs 'T'}}
111 template<typename T> int v1; // expected-error {{redefinition of 'v1' with a different type: 'int' vs 'auto'}}
113 template<typename T> T v2; // expected-error {{redefinition of 'v2'}}
115 template<typename T> extern T v3; // expected-error {{redefinition of 'v3' with a different type: 'T' vs 'auto'}}
232 namespace redefinition {
240 template<> int pi0<int> = 10; // expected-error {{redefinition of 'pi0<int>'}}
241 template<> CONST int pi0<int> = 10; // expected-error {{redefinition of 'pi0' with a different type: 'const int' vs 'int'}}
242 template<> float pi0<int> = 10; // expected-error {{redefinition of 'pi0' with a different type: 'float' vs 'int'}}
244 template<> auto pi0<int> = 10; // expected-error {{redefinition of 'pi0<int>'}}
252 template<> CONST int pi1<int> = 10; // expected-error {{redefinition of 'pi1<int>'}}
311 template<typename T> T var<T*> = T(); // expected-error {{redefinition of 'var' with a different type: 'T' vs 'auto'}}