]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: error recovery on invalid ARRAY argument to FINDLOC [PR106986]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 20 Sep 2022 20:41:48 +0000 (22:41 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Mon, 26 Sep 2022 18:13:25 +0000 (20:13 +0200)
commitf5840677c146e4317d7fd53697dda60c616d3e58
treeb95c2ec789c3d7278ef1f0c57da4bdb3245c79dc
parentfa9c1efcd031c9845fb34165bab3177ca762730c
Fortran: error recovery on invalid ARRAY argument to FINDLOC [PR106986]

gcc/fortran/ChangeLog:

PR fortran/106986
* simplify.c (gfc_simplify_findloc): Do not try to simplify
intrinsic FINDLOC when the ARRAY argument has a NULL shape.

gcc/testsuite/ChangeLog:

PR fortran/106986
* gfortran.dg/pr106986.f90: New test.

(cherry picked from commit 5976fbf9d5dd9542fcb82eebb2185886fd52d000)
gcc/fortran/simplify.c
gcc/testsuite/gfortran.dg/pr106986.f90 [new file with mode: 0644]