This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15531] dynamic_cast fails (at runtime) when dependant on friendship of invoker
- From: "gccbugs at contacts dot eelis dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 May 2004 23:43:11 -0000
- Subject: [Bug c++/15531] dynamic_cast fails (at runtime) when dependant on friendship of invoker
- References: <20040518232016.15531.gccbugs@contacts.eelis.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gccbugs at contacts dot eelis dot net 2004-05-18 23:43 -------
I see, thanks for clearing that up.
In this case, would it not be desirable to have gcc emit an error/warning
indicating that the cast will always fail since Base is not a public base class
of Derived?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15531