2 // From: smidt@dd.chalmers.se (Peter Smidt)
3 // Date: 25 Jan 1994 23:41:33 -0500
4 // Bug: g++ forgets access decls after the definition.
6 class inh { // { dg-message "" } inaccessible
12 class mel : private inh {
15 inh::myf; // { dg-warning "deprecated" }
18 class top_t : protected mel {
23 void inh::myf(int i) {
27 void top_t::myf(int i) {
28 inh::myf(i); // { dg-error "" } cannot convert to inh