URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [access8.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// From: smidt@dd.chalmers.se (Peter Smidt)
// Date: 25 Jan 1994 23:41:33 -0500
// Bug: g++ forgets access decls after the definition.
class inh { // { dg-error "" } inaccessible
int a;
protected:
void myf(int);
};
class mel : private inh {
protected:
int t;
inh::myf;
};
class top_t : protected mel {
public:
void myf(int);
};
void inh::myf(int i) {
a = i;
}
void top_t::myf(int i) {
inh::myf(i); // { dg-error "" } cannot convert to inh
mel::myf(i);
}
Go to most recent revision | Compare with Previous | Blame | View Log