]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Partial reversion of r15-5083 [PR117763]
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 26 Nov 2024 08:58:21 +0000 (08:58 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 27 Nov 2024 07:10:28 +0000 (07:10 +0000)
commit2ae871b71512f77cc6857bf0ecbf80dd1253e18c
tree02169dbdbb9749ddd05bab0e1b8663300fb0772b
parentca8df391602593b5a9be6220f0337767d8ed8837
Fortran: Partial reversion of r15-5083 [PR117763]

2024-11-26  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/117763
* trans-array.cc (gfc_get_array_span): Guard against derefences
of 'expr'. Clean up some typos. Use 'gfc_get_vptr_from_expr'
for clarity and apply a functional reversion of last section
that deals with class dummies.

gcc/testsuite/
PR fortran/117763
* gfortran.dg/pr117763.f90: New test.

(cherry picked from commit 8278d9551df610179fca114808a7e6e62bab3d82)
gcc/fortran/trans-array.cc
gcc/testsuite/gfortran.dg/pr117763.f90 [new file with mode: 0644]