https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51628
--- Comment #37 from H.J. Lu <hjl.tools at gmail dot com> --- Created attachment 43120 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43120&action=edit Add -Waddress-of-packed-member to C/C++ FE Please try this.