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.