aboutsummaryrefslogtreecommitdiff
path: root/gcc/match.pd
diff options
context:
space:
mode:
authorHarald Anlauf <anlauf@gmx.de>2023-08-24 23:16:25 +0200
committerHarald Anlauf <anlauf@gmx.de>2023-08-25 18:00:37 +0200
commit4024ddbe50c2d1cb54c75304c72817d3fc63cdb6 (patch)
tree57bbcaa295437bfabb0d40e1d9e40c1ef26215f8 /gcc/match.pd
parent54cc21eaf5f3eb7f7a508919a086f6c8bf5c4c17 (diff)
downloadgcc-4024ddbe50c2d1cb54c75304c72817d3fc63cdb6.zip
gcc-4024ddbe50c2d1cb54c75304c72817d3fc63cdb6.tar.gz
gcc-4024ddbe50c2d1cb54c75304c72817d3fc63cdb6.tar.bz2
Fortran: improve bounds checking for DATA with implied-do [PR35095]
gcc/fortran/ChangeLog: PR fortran/35095 * data.cc (get_array_index): Add bounds-checking code and return error status. Overindexing will be allowed as an extension for -std=legacy and generate an error in standard-conforming mode. (gfc_assign_data_value): Use error status from get_array_index for graceful error recovery. gcc/testsuite/ChangeLog: PR fortran/35095 * gfortran.dg/data_bounds_1.f90: Adjust options to disable warnings. * gfortran.dg/data_bounds_2.f90: New test.
Diffstat (limited to 'gcc/match.pd')
0 files changed, 0 insertions, 0 deletions