https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95340
--- Comment #4 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:687147abdfccc1b53adc9a2d31e419719f3deaab commit r10-8390-g687147abdfccc1b53adc9a2d31e419719f3deaab 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. (cherry picked from commit b62cac6d92ff251213753475b69ec0b269cb7fae)