This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14827] Run time error, breaking of type info and static casts
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Apr 2004 23:15:04 -0000
- Subject: [Bug c++/14827] Run time error, breaking of type info and static casts
- References: <20040402225716.14827.Igor.Smirnov@cern.ch>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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