]> gcc.gnu.org Git - gcc.git/commit
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>
Wed, 2 Feb 2022 19:49:06 +0000 (20:49 +0100)
commitf4aa5a3e95ba106f3149157a0278616f7a5fd192
tree2632ef6a47d77536a8f46060e928fb512a2bd3c7
parent3cb53c10831be59d967d9dce8e7980fee4703500
Fortran: error recovery when simplifying EOSHIFT

gcc/fortran/ChangeLog:

PR fortran/104331
* simplify.c (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.

(cherry picked from commit 447047a8f95c6bf4b1873f390c833e91aa8af18c)
gcc/fortran/simplify.c
gcc/testsuite/gfortran.dg/eoshift_9.f90 [new file with mode: 0644]
This page took 0.059119 seconds and 5 git commands to generate.