// PR c++/22136 struct B { void foo(); }; template class I : public B {}; template class D : private I { I::B::foo; };