FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / access8.C
blob71a1f028b75f21726df53b9969331ef991c1f25b
1 // From: smidt@dd.chalmers.se (Peter Smidt)
2 // Date: 25 Jan 1994 23:41:33 -0500
3 // Bug: g++ forgets access decls after the definition.
4 // Build don't link:
6 class inh { // ERROR - inaccessible
7         int a;
8 protected:
9         void myf(int);
12 class mel : private inh {
13 protected:
14         int t;
15         inh::myf;
18 class top_t : protected mel {
19 public:
20         void myf(int);
23 void inh::myf(int i) {
24         a = i;
27 void top_t::myf(int i) {
28         inh::myf(i);            // ERROR - cannot convert to inh
29         mel::myf(i);