https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69560

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to David Merillat from comment #0)
> I checked the ISO C++ spec, section 3.11, and it says "The alignment
> requirement of a complete type can be queried using an alignof expression",
> so if alignof(int64_t) yields 8, then it shouldn't be legal to place an
> int64_t at offset 4 in a structure.

That's not true. Some types have weaker alignment requirements when they are
structure members.

Reply via email to