]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR fortran/95340 - ICE in gfc_match_select_rank, at fortran/match.c:6690
authorHarald Anlauf <anlauf@gmx.de>
Sun, 28 Jun 2020 14:24:15 +0000 (16:24 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Mon, 29 Jun 2020 15:47:23 +0000 (17:47 +0200)
commit687147abdfccc1b53adc9a2d31e419719f3deaab
treefdee6bb47d081811b588757388e92c29d404f883
parente3942f91376ba29a8014fd19f7719c5697ac05e8
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)
gcc/fortran/match.c
gcc/testsuite/gfortran.dg/pr95340.f90 [new file with mode: 0644]