Fortran: error recovery when simplifying EOSHIFT
authorHarald Anlauf <anlauf@gmx.de>
Tue, 1 Feb 2022 20:36:42 +0000 (21:36 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 1 Feb 2022 20:36:42 +0000 (21:36 +0100)
commit447047a8f95c6bf4b1873f390c833e91aa8af18c
tree896b9ba848e3afa0102f4438eac57f89e4bb7447
parent95ac5635409606386259d2ff21fb61738858ca4a
Fortran: error recovery when simplifying EOSHIFT

gcc/fortran/ChangeLog:

PR fortran/104331
* simplify.cc (gfc_simplify_eoshift): Avoid NULL pointer
dereference when shape is not set.

gcc/testsuite/ChangeLog:

PR fortran/104331
* gfortran.dg/eoshift_9.f90: New test.
gcc/fortran/simplify.cc
gcc/testsuite/gfortran.dg/eoshift_9.f90 [new file with mode: 0644]