]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix ICE after error regression [PR99060].
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 11 Feb 2021 10:38:23 +0000 (10:38 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 11 Feb 2021 10:46:30 +0000 (10:46 +0000)
commit3bc79d7b5d22c07a337b6399e08c1252d55ea5e0
tree97094aadba49ac9dfd0273b632be3df7ce814dc5
parentb90c8de5d6234047a73bf670d38928cfd7fd7079
Fortran: Fix ICE after error regression [PR99060].

2021-02-11  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/99060
* primary.c (gfc_match_varspec): Test for non-null 'previous'
before using its name in the error message.

gcc/testsuite/
PR fortran/99060
* gfortran.dg/pr99060.f90: New test.

(cherry picked from commit 5ee5415af8691640b0f7a5332b78d04ba309f4f0)
gcc/fortran/primary.c
gcc/testsuite/gfortran.dg/pr99060.f90 [new file with mode: 0644]