This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39981] zero-size base class optimization fails in certain scenarios
- From: "navinkumar+bugs at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Apr 2009 19:22:51 -0000
- Subject: [Bug c++/39981] zero-size base class optimization fails in certain scenarios
- References: <bug-39981-17658@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from navinkumar+bugs at gmail dot com 2009-04-30 19:22 -------
Since std::is_empty<_2_emptyB>::value && std::is_empty<_2_emptyA>::value (as
verified by the static assertions), GCC should not treat _2_emptyB differently
from _2_emptyA when computing the structure's layout. The IA64 C++ ABI only
talks about pod, data, and empty structures, so the ABI specification does not
distinguish between _2_emptyB and _2_emptyA.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39981