]> gcc.gnu.org Git - gcc.git/commit
Fortran: fix error recovery on invalid array section
authorHarald Anlauf <anlauf@gmx.de>
Tue, 10 May 2022 21:41:57 +0000 (23:41 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 11 May 2022 17:13:17 +0000 (19:13 +0200)
commit0acdbe29f66017fc5cca40dcbd72a0dd41491d07
treea1ff18cf5fd4c0839625b53c64674c7fb78c7da6
parent5b2a24ebfc0b2b4c7dd3a58da951fa346abf2a11
Fortran: fix error recovery on invalid array section

gcc/fortran/ChangeLog:

PR fortran/105230
* expr.cc (find_array_section): Correct logic to avoid NULL
pointer dereference on invalid array section.

gcc/testsuite/ChangeLog:

PR fortran/105230
* gfortran.dg/pr105230.f90: New test.

Co-authored-by: Steven G. Kargl <kargl@gcc.gnu.org>
gcc/fortran/expr.cc
gcc/testsuite/gfortran.dg/pr105230.f90 [new file with mode: 0644]
This page took 0.071785 seconds and 6 git commands to generate.