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]
Other format: [Raw text]

[Bug c++/15531] dynamic_cast fails (at runtime) when dependant on friendship of invoker


------- 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


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