[Bug fortran/105230] [9/10/11/12/13 Regression] ICE in find_array_section, at fortran/expr.cc:1634

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 16 19:11:55 GMT 2022


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

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

https://gcc.gnu.org/g:34c60e5e776d29ae6eb9e2e94af1c67666ec1caa

commit r11-10007-g34c60e5e776d29ae6eb9e2e94af1c67666ec1caa
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Tue May 10 23:41:57 2022 +0200

    Fortran: fix error recovery on invalid array section

    gcc/fortran/ChangeLog:

            PR fortran/105230
            * expr.c (find_array_section): Correct logic to avoid NULL
            pointer dereference on invalid array section.

    gcc/testsuite/ChangeLog:

            PR fortran/105230
            * gfortran.dg/pr105230.f90: New test.

    Co-authored-by: Steven G. Kargl <kargl@gcc.gnu.org>
    (cherry picked from commit 0acdbe29f66017fc5cca40dcbd72a0dd41491d07)


More information about the Gcc-bugs mailing list