This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48035] Mismatch on size of class when initializing hierarchy involving virtual inheritance and empty base classes
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 8 Mar 2011 22:43:27 +0000
- Subject: [Bug c++/48035] Mismatch on size of class when initializing hierarchy involving virtual inheritance and empty base classes
- Auto-submitted: auto-generated
- References: <bug-48035-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48035
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-03-08 22:43:13 UTC ---
On x86_64 with valgrind:
==31260== Invalid write of size 8
==31260== at 0x4006E0: BadStuffHere() (t.cc:38)
==31260== by 0x400703: main (t.cc:43)
==31260== Address 0x5936058 is 0 bytes after a block of size 24 alloc'd
==31260== at 0x4C24DFA: operator new(unsigned long)
(vg_replace_malloc.c:261)
==31260== by 0x4006C6: BadStuffHere() (t.cc:38)
==31260== by 0x400703: main (t.cc:43)