[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
Fri Jul 10 19:00:42 GMT 2020


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


commit r11-2025-g8a0b69f0b089c05d233b8e1a941825b1ceac93bd
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.

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

More information about the Gcc-bugs mailing list