• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 namespace rdar8436162 {
4   class ClsA {
5   public:
6     static void f();
7     void g();
8   };
9 
10   class ClsB : virtual private ClsA {
11   public:
12     using ClsA::f;
13     using ClsA::g; // expected-note{{member found by ambiguous name lookup}}
14   };
15 
16   class ClsF : virtual private ClsA {
17   public:
18     using ClsA::f;
19     using ClsA::g; // expected-note{{member found by ambiguous name lookup}}
20   };
21 
22   class ClsE : public ClsB, public ClsF {
test()23     void test() {
24       f();
25       g(); // expected-error{{member 'g' found in multiple base classes of different types}}
26     }
27   };
28 }
29