aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.cc
diff options
context:
space:
mode:
authorHarald Anlauf <anlauf@gmx.de>2024-01-27 17:41:43 +0100
committerHarald Anlauf <anlauf@gmx.de>2024-01-27 17:41:43 +0100
commitce61de1b8a1bb3a22118e900376f380768f2ba59 (patch)
tree1232f4c330a025e60d8c2fdd2c55a5c260f8b27b /gcc/tree.cc
parent7cc9adc62cee0aa91ce834b3dd6296ce38f1d79d (diff)
downloadgcc-ce61de1b8a1bb3a22118e900376f380768f2ba59.zip
gcc-ce61de1b8a1bb3a22118e900376f380768f2ba59.tar.gz
gcc-ce61de1b8a1bb3a22118e900376f380768f2ba59.tar.bz2
Fortran: fix bounds-checking errors for CLASS array dummies [PR104908]
Commit r11-1235 addressed issues with bounds of unlimited polymorphic array dummies. However, using the descriptor from sym->backend_decl does break the case of CLASS array dummies. The obvious solution is to restrict the fix to the unlimited polymorphic case, thus keeping the original descriptor in the ordinary case. gcc/fortran/ChangeLog: PR fortran/104908 * trans-array.cc (gfc_conv_array_ref): Restrict use of transformed descriptor (sym->backend_decl) to the unlimited polymorphic case. gcc/testsuite/ChangeLog: PR fortran/104908 * gfortran.dg/pr104908.f90: New test.
Diffstat (limited to 'gcc/tree.cc')
0 files changed, 0 insertions, 0 deletions