[Bug fortran/96312] [10/11 Regression] Reallocation on assignment uses undefined variables

pault at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Aug 8 15:01:09 GMT 2020


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


More information about the Gcc-bugs mailing list