[Bug c/51628] __attribute__((packed)) is unsafe in some cases
sven.koehler at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Jan 16 17:03:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51628
--- Comment #41 from Sven <sven.koehler at gmail dot com> ---
(In reply to Alexey Salmin from comment #39)
> .. when the packed attribute is preserved in the pointer.
What do you mean by that? GCC documentation explicitly forbids to use the
packed attribute for anything but structs, unions, and enums.
More information about the Gcc-bugs
mailing list