[Bug c/51628] __attribute__((packed)) is unsafe in some cases
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 17 11:46:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51628
--- Comment #43 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Alexey Salmin from comment #42)
>
> I was trying to say that I'm glad that the "address-of-packed-member"
> warning isn't triggered by this code. It still relies on the "address of
> packed member" but in a safe way.
Please try the current patch:
https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01535.html
More information about the Gcc-bugs
mailing list