// Origin PR c++/47172 // { dg-options "-std=c++0x" } // { dg-do compile } struct A { int f() const; }; template struct B : A { }; template struct C : B { void g(); }; template void C::g() { A::f(); }