1// PR c++/22136 2 3struct B { 4 void foo(); 5}; 6 7template <typename T> class I : public B {}; 8 9template <typename T> class D : private I<T> { 10 I<T>::B::foo; // { dg-warning "deprecated" } 11}; 12