This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26426] Type layout bug
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Aug 2017 18:33:23 +0000
- Subject: [Bug c++/26426] Type layout bug
- Auto-submitted: auto-generated
- References: <bug-26426-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26426
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I don't think this is a bug. B is the primary base class for Z so has already
been allocated (as part of the Y subobject, in I-2b), and so the B base class
of the X subobject is not allocated as part of the X (in III).
https://itanium-cxx-abi.github.io/cxx-abi/abi.html#a17