// Origin PR c++/47172 // { dg-do compile { target c++11 } } struct A { int f() const; }; template struct B : A { }; template struct C : B { void g(); }; template void C::g() { A::f(); }