https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128772
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2026-11-16
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I'd argue that if empty structures and untions are NO_CLASS then empty arrays
(which they are if used by-value) should so, too.
Also:
t.c: In function ‘f5’:
t.c:2:12: note: the ABI of passing struct with a flexible array member has
changed in GCC 4.4
2 | struct S5 f5 (float v) { return (struct S5) { v }; }
for the [] case, but not for [0].