https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70231
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gcc dot gnu.org --- Comment #3 from anlauf at gcc dot gnu.org --- Created attachment 55925 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55925&action=edit Patch The issue here is that the "bounds check" does not properly initialize the string length temporary that is used for checking. The attached patch uses what we have after calling get_array_ctor_strlen.