]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: error recovery with references of bad array constructors [PR105633]
authorHarald Anlauf <anlauf@gmx.de>
Wed, 19 Oct 2022 20:37:56 +0000 (22:37 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 20 Oct 2022 20:19:01 +0000 (22:19 +0200)
commitecb20df4fa6d99daa635c7fb662dc0554610777e
tree423c38c5dc3d984f2409bc201e6383d49df06afb
parentd155442de043c1bef7d27cf2d6be4eba618afcb9
Fortran: error recovery with references of bad array constructors [PR105633]

gcc/fortran/ChangeLog:

PR fortran/105633
* expr.cc (find_array_section): Move check for NULL pointers so
that both subscript triplets and vector subscripts are covered.

gcc/testsuite/ChangeLog:

PR fortran/105633
* gfortran.dg/pr105633.f90: New test.

Co-authored-by: Steven G. Kargl <kargl@gcc.gnu.org>
gcc/fortran/expr.cc
gcc/testsuite/gfortran.dg/pr105633.f90 [new file with mode: 0644]