1 // RUN: %clang_cc1 -verify %s 2 3 template <class T> struct Base { 4 // expected-note@-1 2{{member type 'Base<int>' found by ambiguous name lookup}} 5 // expected-note@-2 2{{member type 'Base<char>' found by ambiguous name lookup}} 6 static void f(); 7 }; 8 9 struct X0 { }; 10 11 template <class T> struct Derived: Base<int>, Base<char> { 12 typename Derived::Base b; // expected-error{{member 'Base' found in multiple base classes of different types}} 13 typename Derived::Base<double> d; // OK 14 gDerived15 void g(X0 *t) { 16 t->Derived::Base<T>::f(); 17 t->Base<T>::f(); 18 t->Base::f(); // expected-error{{member 'Base' found in multiple base classes of different types}} \ 19 // expected-error{{no member named 'f' in 'X0'}} 20 } 21 }; 22 23 namespace PR6717 { 24 template <typename T> 25 class WebVector { 26 } // expected-error {{expected ';' after class}} 27 28 WebVector(const WebVector<T>& other) { } // expected-error{{undeclared identifier 'T'}} \ 29 expected-error{{requires a type specifier}} 30 31 template <typename C> 32 WebVector<T>& operator=(const C& other) { } // expected-error{{undeclared identifier 'T'}} 33 } 34