This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: private base class doesn't seem to be


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]