// { dg-do compile } // Origin: Volker Reichelt // PR c++/7964 struct A { virtual void foo() const; }; struct B : virtual A {}; template struct C : B { void bar() const { B::foo(); } }; template struct C;