[Bug c++/37762] Member variable of empty base optimized (EBO) class appears on wrong offset
Andrew Thomas Pinski
pinskia@gmail.com
Tue Oct 7 10:45:00 GMT 2008
Iirc there are some pod vs non pod issues here dealing wit padding and
the c++ standard and not even the abi.
Sent from my iPhone
On Oct 7, 2008, at 2:31 AM, "david dot rosenborg at pantor dot com" <gcc-bugzilla@gcc.gnu.org
> wrote:
>
>
> ------- 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