« Return to Thread: [Bug c++/12277] Warn on dynamic casts with known NULL results.

[Bug c++/12277] Warn on dynamic casts with known NULL results.

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View in Thread



------- Comment #6 from bangerth at gmail dot com  2009-07-06 20:56 -------
(In reply to comment #3)

I had to stare at the testcase in comment #3 for a little while and thought
others may have to as well: it fails because the inheritance from Base is
*private*, not because the dynamically created object is not derived a Derived
object at all.

W.


--


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12277

 « Return to Thread: [Bug c++/12277] Warn on dynamic casts with known NULL results.