re PR fortran/82994 (ICE in gfc_match_deallocate, at fortran/match.c:4478)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Wed, 7 Feb 2018 22:29:22 +0000 (22:29 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Wed, 7 Feb 2018 22:29:22 +0000 (22:29 +0000)
commitb35a0ccd139f5df8262ef7ea5fed81d88074ecf8
tree74651fb9a8d4adeb6578cf8c2e6704247010ee76
parent72267602a7e46a578cf89cfc12782f8740b1cac5
re PR fortran/82994 (ICE in gfc_match_deallocate, at fortran/match.c:4478)

2018-02-07  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/82994
* match.c (gfc_match_deallocate): Check for NULL pointer.

2018-02-07  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/82994
* gfortran.dg/deallocate_error_3.f90: New test.
* gfortran.dg/deallocate_error_4.f90: New test.

From-SVN: r257465
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/deallocate_error_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/deallocate_error_4.f90 [new file with mode: 0644]