https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117763
--- Comment #21 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:2ae871b71512f77cc6857bf0ecbf80dd1253e18c commit r12-10835-g2ae871b71512f77cc6857bf0ecbf80dd1253e18c Author: Paul Thomas <pa...@gcc.gnu.org> Date: Tue Nov 26 08:58:21 2024 +0000 Fortran: Partial reversion of r15-5083 [PR117763] 2024-11-26 Paul Thomas <pa...@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)