[Bug c++/37762] Member variable of empty base optimized (EBO) class appears on wrong offset
david dot rosenborg at pantor dot com
gcc-bugzilla@gcc.gnu.org
Tue Oct 7 09:32:00 GMT 2008
------- Comment #3 from david dot rosenborg at pantor dot com 2008-10-07 09:31 -------
Ah, no, I wasn't aware of that document. I just thought that gcc was treating
the Good and Bad cases inconsitently.
Now, in layman's terms, is the reason for the padding that no two distinct
instances of Empty may share the same address? If that is the case, it would
explain the padding and this is not a bug.
Sorry, should have investigated more before hitting the commit button.
/David
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37762
More information about the Gcc-bugs
mailing list