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

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

https://gcc.gnu.org/g:30b606bb9b9314010a446ea4bed3481632008f75

commit r11-5727-g30b606bb9b9314010a446ea4bed3481632008f75
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.

Reply via email to