[Bug c++/85205] Optimalisation fails when using a union to allocate space on stack
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 5 11:51:00 GMT 2018
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.
More information about the Gcc-bugs
mailing list