]> 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:08:56 +0000 (07:08 +0000)
commitda1305a9fee3b2efbb4702bb2d9b2f740d2e538a
treee684c9dd0a74fa6c3b1ab35f858fe10775a75782
parente17defc4c07c3ded06f4d133871d3e7268be1299
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]