https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106974 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think gcc is correct here. You cannot take the address of an element of a packed structure.