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

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

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

commit r9-9099-g34e72e050bf4e23689af7061f6381b95339eb7fa
Author: Harald Anlauf <anl...@gmx.de>
Date:   Thu Dec 3 20:33:22 2020 +0100

    PR fortran/95342 - ICE in gfc_match_subroutine, at fortran/decl.c:7913

    Add checks for NULL pointers before dereferencing them.

    gcc/fortran/ChangeLog:

            PR fortran/95342
            * decl.c (gfc_match_function_decl): Avoid NULL pointer dereference.
            (gfc_match_subroutine): Likewise.

    gcc/testsuite/ChangeLog:

            PR fortran/95342
            * gfortran.dg/pr95342.f90: New test.

    (cherry picked from commit 30b606bb9b9314010a446ea4bed3481632008f75)

Reply via email to