help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible Bug - g++ 3.4.0 and GotW #17


From: Jan Rendek
Subject: Re: Possible Bug - g++ 3.4.0 and GotW #17
Date: Thu, 27 May 2004 17:40:17 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.4) Gecko/20030630

Paul Pluzhnikov wrote:
Jan Rendek <do@not.use> writes:


Am I missing something here, or shall I write bug report ?


The default inheritance is *private*, and gcc-3.4 message is correct
(if somewhat cryptic).

Thx, I know that and the error message is perfectly clear.
Please read the article I'm referring to:
http://www.gotw.ca/gotw/017.htm

According to the above article the dynamic_cast is valid.


> Make the inheritance public, and gcc-3.4 will compile it just fine.

If the inheritance was public, no cast would be required to perform
assignment.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]