RH 7 g++ inheritance problem
tmwg-gcc@inxservices.com
tmwg-gcc@inxservices.com
Wed Aug 9 17:39:00 GMT 2000
This is from the RPM that Red Hat has on their site, version 2.96 20000724
(experimental) plus a bunch of patches, compiled on i686 linux.
This source:
class A {
};
class B : private A {
};
class C : protected B {
public:
static A a;
};
static A a;
gives this message:
/tmp/private.cc:1: `class A' is inaccessible
/tmp/private.cc:7: within this context
That doesn't make sense to me. Of course, it may not be that way in a later
snapshot. I can't keep up with the snapshots any more; they haven't been
stable enough to really even offer bug reports for as a compiler layman.
More information about the Gcc-bugs
mailing list