// RUN: %clang_cc1 -std=c++11 %s -verify
// expected-no-diagnostics
structA{voidf();};structC{voidf();};structB:A{typedef A X;};structD:C{typedef C X;voidg();};voidD::g(){
B * b =new B;
b->X::f();// lookup for X finds B::X
}typedefintX;voidh(void){
B * b =new B;
b->X::f();// lookup for X finds B::X
}