This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13387] New: assignment to base class corrupts subclass
- From: "Tasso dot Karkanis at rogers dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Dec 2003 02:23:57 -0000
- Subject: [Bug c++/13387] New: assignment to base class corrupts subclass
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When assigning a base class with all POD members to a subclass, members of the
subclass can be corrupted (depending on the alignment). I'm not 100% sure, but
I don't think that the standard allows this.
--
Summary: assignment to base class corrupts subclass
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Tasso dot Karkanis at rogers dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13387