https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85205
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code CC| |rguenth at gcc dot gnu.org Known to work| |8.0 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #2) > It is UB, but as extension we try to accept such code as poor man's flexible > array members. > This works on the trunk as expected starting with r255775 aka PR77291 fix. Yeah, it's not a regression so I didn't backport that.