[Bug c/118997] Wrong struct padding or documentation is misleading
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 24 13:01:57 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118997
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Your expectations are wrong.
If sizeof(void*) == 8 and alignof(long double) == 16, then padding needs to be
inserted
before the two member such that it is properly aligned (even when it is zero
size).
More information about the Gcc-bugs
mailing list