]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix wrong array bounds check [PR113471]
authorHarald Anlauf <anlauf@gmx.de>
Fri, 19 Jan 2024 20:20:44 +0000 (21:20 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 19 Jan 2024 20:20:44 +0000 (21:20 +0100)
commit94b2e6cb1cc4feb122bf77f19a657c97bffa9b42
tree34440d1f54094c4948b968b85bcd17f32bb658ef
parent1338ad23ff3c1e4f552cdb64e36cef12eda2e050
Fortran: fix wrong array bounds check [PR113471]

gcc/fortran/ChangeLog:

PR fortran/113471
* trans-array.cc (array_bound_check_elemental): Array bounds check
shall apply here to elemental dimensions of an array section only.

gcc/testsuite/ChangeLog:

PR fortran/113471
* gfortran.dg/bounds_check_24.f90: New test.
gcc/fortran/trans-array.cc
gcc/testsuite/gfortran.dg/bounds_check_24.f90 [new file with mode: 0644]