https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88928
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-01-20 Target Milestone|--- |9.0 Ever confirmed|0 |1 --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- We should warn: --- struct a { int i; } __attribute__((__packed__)); void c (struct a **); void d (const struct a *b) { c ((struct a **) b); } -- But should we warn -- struct a { } __attribute__((__packed__)); void c (struct a **); void d (const struct a *b) { c ((struct a **) b); } -- in C? Since "struct a" is empty, can we ever generate unaligned access to an empty structure?