]> gcc.gnu.org Git - gcc.git/commit
Fortran - out of bounds in array constructor with implied do loop
authorHarald Anlauf <anlauf@gmx.de>
Thu, 9 Sep 2021 19:34:01 +0000 (21:34 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 11 Sep 2021 19:02:13 +0000 (21:02 +0200)
commit7ca5bcb0f12380a399c6f88f82fa01b530eb85e5
treeebb960dafb6243eee5dd8be529695de56a7a994a
parent0d09acc0d627dcc7b3d82d873ee9da2f7546414e
Fortran - out of bounds in array constructor with implied do loop

gcc/fortran/ChangeLog:

PR fortran/98490
* trans-expr.c (gfc_conv_substring): Do not generate substring
bounds check for implied do loop index variable before it actually
becomes defined.

gcc/testsuite/ChangeLog:

PR fortran/98490
* gfortran.dg/bounds_check_23.f90: New test.

(cherry picked from commit 5fe0865ab788bdc387b284a3ad57e5a95a767b18)
gcc/fortran/trans-expr.c
gcc/testsuite/gfortran.dg/bounds_check_23.f90 [new file with mode: 0644]
This page took 0.07399 seconds and 6 git commands to generate.