Lines Matching refs:NameFromBase
282 template <typename T> struct A { typedef T NameFromBase; }; typedef
284 NameFromBase m; // expected-warning {{found via unqualified lookup into dependent bases}}
290 template <typename T> struct A { struct NameFromBase {}; }; struct
292 NameFromBase m; // expected-warning {{found via unqualified lookup into dependent bases}}
298 template <typename T> struct A { enum NameFromBase { X }; }; enum
300 NameFromBase m; // expected-warning {{found via unqualified lookup into dependent bases}}
302 static_assert(sizeof(B<int>) == sizeof(A<int>::NameFromBase), "");
306 template <typename T> struct A { typedef T NameFromBase; }; typedef
307 template <typename T> struct B { struct NameFromBase { T m; }; }; struct
309 NameFromBase m; // expected-error {{unknown type name 'NameFromBase'}}
315 template <typename T> struct A { typedef T NameFromBase; }; typedef
316 template <typename T> struct B { static const T NameFromBase = 42; }; member
318 NameFromBase m; // expected-error {{unknown type name 'NameFromBase'}}
323 template <typename T> struct A { struct NameFromBase {}; }; struct
325 A<NameFromBase> m; // expected-warning {{found via unqualified lookup into dependent bases}}
332 template <typename T> struct A { void NameFromBase() {} }; in NameFromBase() function
335 B<C::NameFromBase> a; // correct
336 B<NameFromBase> b; // expected-error {{use of undeclared identifier 'NameFromBase'}}
342 template <typename U> struct NameFromBase { U x; }; argument
346 typename B::template NameFromBase<T> m;
350 NameFromBase<T> m; // expected-error {{unknown type name 'NameFromBase'}}
358 struct B { typedef T NameFromBase; }; typedef
361 struct C : A<T>::B { NameFromBase m; }; // expected-error {{unknown type name 'NameFromBase'}}
371 NameFromBase m; // expected-error {{unknown type name 'NameFromBase'}}
381 struct B : A<T> { NameFromBase m; }; // expected-error {{unknown type name 'NameFromBase'}}
382 struct C : A<int> { NameFromBase m; }; // expected-error {{unknown type name 'NameFromBase'}}
386 struct A { typedef int NameFromBase; }; typedef
391 struct C : B<T> { NameFromBase m; }; // expected-error {{unknown type name 'NameFromBase'}}
395 template <typename T> struct A { typedef T NameFromBase; }; typedef
399 static auto lateSpecifiedFunc() -> decltype(NameFromBase()) { in lateSpecifiedFunc()
404 NameFromBase x; // expected-warning {{lookup into dependent bases}} in memberFunc()
409 NameFromBase x; // expected-warning {{lookup into dependent bases}} in funcLocalClass()
416 NameFromBase m; // expected-warning {{lookup into dependent bases}} in localClassMethod()
424 NameFromBase x; // expected-warning {{lookup into dependent bases}} in funcLambda()
430 NameFromBase x = {}; // expected-warning {{lookup into dependent bases}} in constexprFunc()
435 NameFromBase x; // expected-warning {{lookup into dependent bases}} in autoFunc()
451 struct A { typedef T NameFromBase; }; typedef
455 int x = f<NameFromBase>();
459 template <typename T> struct C { enum { NameFromBase = 4 }; }; enumerator
462 int x = f<NameFromBase>();