]> gcc.gnu.org Git - gcc.git/commit
Fortran: fix bounds check for assignment, class component [PR86100]
authorHarald Anlauf <anlauf@gmx.de>
Mon, 13 May 2024 20:06:33 +0000 (22:06 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 25 May 2024 18:07:45 +0000 (20:07 +0200)
commitb0b21d5bdfbc7d417b70010a11354b44968bb184
tree56e7546f1fda1dc6f4bb8d6c35af1f32e7158076
parentcab894172dcd21e0111d192b373e3b18f66b2769
Fortran: fix bounds check for assignment, class component [PR86100]

gcc/fortran/ChangeLog:

PR fortran/86100
* trans-array.cc (gfc_conv_ss_startstride): Use abridged_ref_name
to generate a more user-friendly name for bounds-check messages.
* trans-expr.cc (gfc_copy_class_to_class): Fix bounds check for
rank>1 by looping over the dimensions.

gcc/testsuite/ChangeLog:

PR fortran/86100
* gfortran.dg/bounds_check_25.f90: New test.

(cherry picked from commit 93765736815a049e14d985b758a213cfe60c1e1c)
gcc/fortran/trans-array.cc
gcc/fortran/trans-expr.cc
gcc/testsuite/gfortran.dg/bounds_check_25.f90 [new file with mode: 0644]
This page took 0.060919 seconds and 5 git commands to generate.