Lines Matching refs:T
12 template<typename T>
15 X1<T>(int);
16 (X1<T>)(float);
26 template<typename T> X1<T>::X1<T>(int) { } // expected-error{{out-of-line constructor for 'X1' cann… in X1()
27 template<typename T> (X1<T>::X1<T>)(float) { } // expected-error{{out-of-line constructor for 'X1' …
34 template<typename T> X1<T>::X1<T> X1<T>::f2() { } // expected-error{{missing 'typename'}} in f2()
35 template<typename T> X1<T>::X1<T> (X1<T>::f2)(int) { } // expected-error{{missing 'typename'}} in X1()
36 template<typename T> struct X1<T>::X1<T> (X1<T>::f2)(float) { } in X1()
37 template<typename T> struct X1<T>::X1 (X1<T>::f2)(double) { } in X1()
38 template<typename T> typename X1<T>::template X1<T> X1<T>::f2(short) { } // expected-warning {{qual… in f2()
39 template<typename T> typename X1<T>::template X1<T> (X1<T>::f2)(long) { } // expected-warning {{qua… in X1()
80 template<typename T> void in_instantiation_x0() { in in_instantiation_x0()
81 …typename T::X0 x0; // expected-warning{{qualified reference to 'X0' is a constructor name rather t… in in_instantiation_x0()
82 typename T::A a; in in_instantiation_x0()
83 typename T::B b; in in_instantiation_x0()
87 template<typename T> void in_instantiation_x1() { in in_instantiation_x1()
88 …typename T::X1 x1; // expected-warning{{qualified reference to 'X1' is a constructor name rather t… in in_instantiation_x1()
89 …typename T::template X1<int> x1i; // expected-warning{{qualified reference to 'X1' is a constructo… in in_instantiation_x1()
90 typename T::X0 x0; in in_instantiation_x1()
95 template<typename T> void f(typename T::X0 *) = delete; // expected-warning 0-1{{extension}}
96 template<typename T> void f(...);
101 template <typename T> struct A : T::B {
102 struct T::B *p;
103 typename T::B::type a;
104 A() : T::B() {} in A()
106 …typename T::B b; // expected-warning {{qualified reference to 'B' is a constructor name rather tha…
123 int T();
125 typedef A T; typedef
129 using InhCtor::T::T;
134 int n = b.T(); // ok, accessible
137 int n = b.T(); // expected-error {{'T' is a protected member of 'InhCtor::A'}}
142 template<typename T>
143 struct S : T {
147 using T::T;
152 template<typename T>
153 struct X : T {
154 using T::Z::U::U;
156 template<typename T>
157 struct X2 : T {
158 using T::Z::template V<int>::V;
163 template<typename T> using V = Y;
171 struct T { struct
172 T(int);
178 template<typename T>
179 struct ZT : T::T {
180 using T::T::T;
198 template<typename T> struct UsingIntTemplate {
199 …using T::T; // expected-error {{type 'int' cannot be used prior to '::' because it has no members}}
210 template <typename T> struct B { B(int); };
211 template <typename T> struct A : B<T> {
212 using X = B<T>;