]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: improve error recovery on invalid array section
authorHarald Anlauf <anlauf@gmx.de>
Wed, 9 Mar 2022 20:58:26 +0000 (21:58 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 9 Mar 2022 20:58:26 +0000 (21:58 +0100)
commit22015e77d3e45306077396b9de8a8a28bb67fb20
treed667680b53824e538d8c58b0ad3ec1f7713337b7
parente2607d71e5e371c0c006555e0531ea1ff5ac416c
Fortran: improve error recovery on invalid array section

gcc/fortran/ChangeLog:

PR fortran/104849
* expr.cc (find_array_section): Avoid NULL pointer dereference on
invalid array section.

gcc/testsuite/ChangeLog:

PR fortran/104849
* gfortran.dg/pr104849.f90: New test.
gcc/fortran/expr.cc
gcc/testsuite/gfortran.dg/pr104849.f90 [new file with mode: 0644]