https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93337
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:0e66f1ddf7a7166f7a140c03e5d55286c7ef582b commit r10-8429-g0e66f1ddf7a7166f7a140c03e5d55286c7ef582b Author: Harald Anlauf <anl...@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)