1// Test that a base doesn't get special rights to convert to itself. 2 3struct A { 4 void f (); 5}; 6 7struct B: private A { }; 8 9B b; 10 11void A::f () 12{ 13 A* ap = &b; // { dg-error "base|inherit" "" } 14} 15