// RUN: %clang_cc1 -fsyntax-only -verify %s namespace test0 { // p3 template int foo(T), bar(T, T); // expected-error{{single entity}} } // PR7252 namespace test1 { namespace A { template struct Base { typedef T t; }; } // expected-note {{member type 'test1::A::Base' found}} expected-note 2{{declared here}} namespace B { template struct Base { typedef T t; }; } // expected-note {{member type 'test1::B::Base' found}} template struct Derived : A::Base, B::Base { typename Derived::Base::t x; // expected-error {{found in multiple base classes of different types}} }; class X : A::Base {}; // expected-note 2{{private}} class Y : A::Base {}; struct Z : A::Base {}; struct Use1 : X, Y { Base b1; // expected-error {{private}} Use1::Base b2; // expected-error {{private}} }; struct Use2 : Z, Y { Base b1; Use2::Base b2; }; struct Use3 : X, Z { Base b1; Use3::Base b2; }; } namespace test2 { struct A { static int x; }; // expected-note 4{{member}} struct B { template static T x(); }; // expected-note 4{{member}} struct C { template struct x {}; }; // expected-note 3{{member}} struct D { template static T x(); }; // expected-note {{member}} template struct X : T... {}; void f() { X::x(); // expected-error {{found in multiple base classes of different types}} X::x(); // expected-error {{found in multiple base classes of different types}} X::x(); // expected-error {{found in multiple base classes of different types}} X::x(); // expected-error {{found in multiple base classes of different types}} X::x(); // expected-error {{found in multiple base classes of different types}} } }