• Home
  • Raw
  • Download

Lines Matching full:template

5 template<typename T, // expected-note {{declared here}}
6 … typename T> struct X {}; // expected-error {{declaration of 'T' shadows template parameter}}
8 template<typename T> struct Y { // expected-note 18{{declared here}}
9template<typename T> struct A {}; // expected-error {{declaration of 'T' shadows template paramete…
12template<typename> struct T {}; // expected-error {{declaration of 'T' shadows template parameter}}
15 template<typename> void T(); // expected-error {{declaration of 'T' shadows template parameter}}
18 struct T {}; // expected-error {{declaration of 'T' shadows template parameter}}
21 typedef int T; // expected-error {{declaration of 'T' shadows template parameter}}
24 using T = int; // expected-error {{declaration of 'T' shadows template parameter}}
27 int T; // expected-error {{declaration of 'T' shadows template parameter}}
30 static int T; // expected-error {{declaration of 'T' shadows template parameter}}
33 void T(); // expected-error {{declaration of 'T' shadows template parameter}}
36 enum T { e }; // expected-error {{declaration of 'T' shadows template parameter}}
39 enum E { T }; // expected-error {{declaration of 'T' shadows template parameter}}
43 extern int T; // expected-error {{declaration of 'T' shadows template parameter}} in a()
46 int T; // expected-error {{declaration of 'T' shadows template parameter}} in b()
50 catch (int T) {} // expected-error {{declaration of 'T' shadows template parameter}} in c()
53 void T(); // expected-error {{declaration of 'T' shadows template parameter}} in d()
56 namespace T = N; // expected-error {{declaration of 'T' shadows template parameter}} in e()
60 // specifier finds the template parameter in this case, which is ill-formed
63 struct T *p; // expected-error {{declaration of 'T' shadows template parameter}} in f()
65 friend struct T; // expected-error {{declaration of 'T' shadows template parameter}}
68 template<int T> struct Z { // expected-note 16{{declared here}}
69template<typename T> struct A {}; // expected-error {{declaration of 'T' shadows template paramete…
72template<typename> struct T {}; // expected-error {{declaration of 'T' shadows template parameter}}
75 template<typename> void T(); // expected-error {{declaration of 'T' shadows template parameter}}
78 struct T {}; // expected-error {{declaration of 'T' shadows template parameter}}
81 typedef int T; // expected-error {{declaration of 'T' shadows template parameter}}
84 using T = int; // expected-error {{declaration of 'T' shadows template parameter}}
87 int T; // expected-error {{declaration of 'T' shadows template parameter}}
90 static int T; // expected-error {{declaration of 'T' shadows template parameter}}
93 void T(); // expected-error {{declaration of 'T' shadows template parameter}}
96 enum T { e }; // expected-error {{declaration of 'T' shadows template parameter}}
99 enum E { T }; // expected-error {{declaration of 'T' shadows template parameter}}
103 extern int T; // expected-error {{declaration of 'T' shadows template parameter}} in a()
106 int T; // expected-error {{declaration of 'T' shadows template parameter}} in b()
110 catch (int T) {} // expected-error {{declaration of 'T' shadows template parameter}} in c()
113 void T(); // expected-error {{declaration of 'T' shadows template parameter}} in d()
116 namespace T = N; // expected-error {{declaration of 'T' shadows template parameter}} in e()
119 // These cases are valid when 'T' is a non-type template parameter, as T
120 // names an injected struct ::T, which doesn't shadow the template parameter.
127 template<typename T> // expected-note {{declared here}}
128 void f(int T) {} // expected-error {{declaration of 'T' shadows template parameter}} in f()
130 // FIXME: These are ill-formed: a template-parameter shall not have the same name as the template n…
132template<typename T> struct T {}; // expected-error{{declaration of 'T' shadows template paramete…
133 // expected-note@-1{{template parameter is declared here}}
136 template<typename T> void T() {} in T()
139 template<typename T> int T;
143 template<int V> // expected-note{{template parameter is declared here}}
146template <int> friend struct V; // expected-error{{declaration of 'V' shadows template parameter}}