[Bug c/51628] __attribute__((packed)) is unsafe in some cases
alexey.salmin at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Jan 16 15:07:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51628
--- Comment #39 from Alexey Salmin <alexey.salmin at gmail dot com> ---
Thank you, this patch works for me.
Gives a warning in the attached test case, but still allows to take an address
of a packed struct members when the packed attribute is preserved in the
pointer.
More information about the Gcc-bugs
mailing list