]> gcc.gnu.org Git - gcc.git/commit
PR fortran/93337 - ICE in gfc_dt_upper_string, at fortran/module.c:441
authorHarald Anlauf <anlauf@gmx.de>
Thu, 2 Jul 2020 18:41:51 +0000 (20:41 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 2 Jul 2020 18:41:51 +0000 (20:41 +0200)
commitd9fb6f2b4f1321b059807ff6073156f07d9d376b
tree56827c2a8afc827ee72cb37a636456d4bc62dbe5
parentc6f431bba531bac3212b66069cf0f9718edf0132
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.
gcc/fortran/class.c
gcc/testsuite/gfortran.dg/pr93337.f90 [new file with mode: 0644]
This page took 0.069969 seconds and 5 git commands to generate.