https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91922
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- I don't think #pragma pack works on line granularity and we should probably diagnose that somehow. You have to resort to __attribute__((aligned)) (or C1x alignas).