PR fortran/95978 - ICE in gfc_match_data, at fortran/decl.c:731
authorHarald Anlauf <anlauf@gmx.de>
Mon, 29 Jun 2020 21:20:16 +0000 (23:20 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Mon, 29 Jun 2020 21:20:53 +0000 (23:20 +0200)
commit583812c2e2f3593823622b0a5821d957c832dbd0
tree1c87687cfe33bf7bf8b0d4508638dfad0d738f96
parent95cdcf701dad826f225d6413b59650f181954399
PR fortran/95978 - ICE in gfc_match_data, at fortran/decl.c:731

Catch NULL pointer dereference on invalid DATA statement.

gcc/fortran/
PR fortran/95978
* decl.c (gfc_match_data): Avoid NULL pointer dereference.
gcc/fortran/decl.c
gcc/testsuite/gfortran.dg/pr95978.f90 [new file with mode: 0644]