private base class doesn't seem to be
Valentin Bonnard
bonnardv@pratique.fr
Mon Nov 9 12:02:00 GMT 1998
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/
More information about the Gcc-bugs
mailing list