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++/14827] Run time error, breaking of type info and static casts


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-02 23:15 -------
I think this is undefined behavior but I do not know.
A work around for this testcase is to swap the order of the base classes of the super most class:
class SuperDerived: public Derived, public Base2

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code


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


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