[Bug fortran/106986] [10/11/12/13 Regression] ICE in simplify_findloc_nodim, at fortran/simplify.cc:5675

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 26 18:16:06 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106986

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:f5840677c146e4317d7fd53697dda60c616d3e58

commit r10-11004-gf5840677c146e4317d7fd53697dda60c616d3e58
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Tue Sep 20 22:41:48 2022 +0200

    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)


More information about the Gcc-bugs mailing list