1 // RUN: %clang_cc1 -std=c++11 %s -verify
2 // expected-no-diagnostics
4 struct A
{ void f(); };
5 struct C
{ void f(); };
6 struct B
: A
{ typedef A X
; };
7 struct D
: C
{ typedef C X
; void g(); };
12 b
->X::f(); // lookup for X finds B::X
19 b
->X::f(); // lookup for X finds B::X