https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96312
Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org CC| |pault at gcc dot gnu.org --- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> --- Created attachment 49031 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49031&action=edit Patch for the PR This is quite straightforward. The patch makes sure that references to the bounds only occur if the lhs is allocated on arrival at offending statement. It even regtests OK :-) Paul