This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
legal C++ ?
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 6 Oct 2004 12:58:50 -0700 (PDT)
- Subject: legal C++ ?
- Reply-to: sje at cup dot hp dot com
The following program compiles with the latest g++ but not with a couple
of other C++ compilers I tried. It seems like g++ should not be accepting
this, is this a bug? Should I submit a bug report against g++?
class A {
public:
void l();
friend class C;
};
class B : protected A {
};
class C {
void v(B * g) { g->l(); }
};
Steve Ellcey
sje@cup.hp.com