https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95340
--- Comment #3 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:b62cac6d92ff251213753475b69ec0b269cb7fae commit r11-1695-gb62cac6d92ff251213753475b69ec0b269cb7fae Author: Harald Anlauf <anl...@gmx.de> Date: Sun Jun 28 16:24:15 2020 +0200 PR fortran/95340 - ICE in gfc_match_select_rank, at fortran/match.c:6690 Do not dereference NULL pointer when querying array shape of possibly improperly delared variable. gcc/fortran/ PR fortran/95340 * match.c (gfc_match_select_rank): Do not dereference NULL pointer.