This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: private base class doesn't seem to be
- To: egcs-bugs at cygnus dot com
- Subject: Re: private base class doesn't seem to be
- From: Valentin Bonnard <bonnardv at pratique dot fr>
- Date: Mon, 09 Nov 1998 19:52:36 +0100
- CC: David C Binderman <dcb at pncl dot co dot uk>
- Organization: Ecole Normale Superieure, Paris, France
dcb@pncl.co.uk (David C Binderman) wrote:
>class Base1 { };
>class Int1 : virtual protected Base1 { };
>class Int2 : private virtual Base1 { };
>class Der : private Int1, public Int2 {
A virtual base class is accessible iff there is at least
_one_ valid path to it. This is only common sens. Here there
is the path Der -> Int1 -> Base1 (in the context of Der).
I think this was already in the ARM (well, not really, as
protected wasn't allowed at that time).
Note that the release you mention says 'not implemented', so
I don't see how it is 'correct'.
--
Valentin Bonnard mailto:bonnardv@pratique.fr
info about C++/a propos du C++: http://pages.pratique.fr/~bonnardv/