[Bug fortran/96086] ICE in gfc_match_select_rank, at fortran/match.c:6645

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 23 19:06:54 GMT 2020


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

--- Comment #4 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:6dd74062d215682e1f9b3ca618a9d38585dd4831

commit r10-8524-g6dd74062d215682e1f9b3ca618a9d38585dd4831
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Fri Jul 10 21:00:13 2020 +0200

    PR fortran/96086 - ICE in gfc_match_select_rank, at fortran/match.c:6645

    Handle NULL pointer dereference on SELECT RANK with an invalid
    assumed-rank array declaration.

    gcc/fortran/
            PR fortran/96086
            * match.c (gfc_match_select_rank): Catch NULL pointer
            dereference.
            * resolve.c (resolve_assoc_var): Catch NULL pointer dereference
            that may occur after an illegal declaration.

    (cherry picked from commit 8a0b69f0b089c05d233b8e1a941825b1ceac93bd)


More information about the Gcc-bugs mailing list