]> 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 11:56:07 +0000 (11:56 +0000)
commitbe28e7adf7586d9d0fe77ce175014b04184f5891
treec4e81f578d48542703e99a289f8f25fc94cdd1ec
parentf4036c095ab91488460948a701f53c176ffe4fa2
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]