https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90061
Alexander Monakov <amonakov at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #5 from Alexander Monakov <amonakov at gcc dot gnu.org> --- One common cause for such issues is taking the address of an under-aligned field, assigning the misaligned address to a normal 'long *' pointer, and then trying to access the field via that pointer. Sometimes the compiler propagates alignment info for such pointers, but in general it can't (the code should use a typedef for a misaligned pointer). GCC 9 implemented a new warning, -Waddress-of-packed-member, to catch such misuse (although sadly it wouldn't trigger here due to #pragma pack, see PR 90452). Of course without seeing an example it's impossible to say what went wrong. Closing, please reopen or file a new bug when a testcase is available.