[Bug fortran/93337] [9/10/11 Regression] ICE in gfc_dt_upper_string, at fortran/module.c:441

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 7 19:42:15 GMT 2020


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

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

https://gcc.gnu.org/g:ed54352ccfc3f0ec6c14e61035a78d06d5d44194

commit r9-8724-ged54352ccfc3f0ec6c14e61035a78d06d5d44194
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Thu Jul 2 20:41:51 2020 +0200

    PR fortran/93337 - ICE in gfc_dt_upper_string, at fortran/module.c:441

    When declaring a polymorphic variable that is not a dummy, allocatable or
    pointer, an ICE occurred due to a NULL pointer dereference.  Check for
    that situation and punt.

    gcc/fortran/
            PR fortran/93337
            * class.c (gfc_find_derived_vtab): Punt if name is not set.

    (cherry picked from commit d9fb6f2b4f1321b059807ff6073156f07d9d376b)


More information about the Gcc-bugs mailing list