]> git.ipfire.org Git - thirdparty/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>
Mon, 6 Jul 2020 21:14:20 +0000 (23:14 +0200)
commit0e66f1ddf7a7166f7a140c03e5d55286c7ef582b
tree56eb56afae886d5b88748d9b5fb2627d7c50ef66
parent828047a5d43135937136cc737b4ee4b0f2582c64
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)
gcc/fortran/class.c
gcc/testsuite/gfortran.dg/pr93337.f90 [new file with mode: 0644]