[Bug c++/79024] alignas / alignof report wrong alignment for 64bit integer types for 32bit target
gnu-9fbaow at upsuper dot org
gcc-bugzilla@gcc.gnu.org
Mon Jan 9 23:31:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79024
--- Comment #7 from Xidorn Quan <gnu-9fbaow at upsuper dot org> ---
(In reply to Jonathan Wakely from comment #5)
> Please read 3.11 more carefully.
>
> "The alignment required for a type might be different when it is used as the
> type of a complete object and when it is used as the type of a subobject.
> [...] The result of the alignof operator reflects the alignment requirement
> of the type in the complete-object case."
I saw that, but given the example, I thought it was only for the case of
virtual base... Well...
More information about the Gcc-bugs
mailing list