https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117797
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:d1710c420a0fcea40c983eff2427fe72072099da commit r14-11109-gd1710c420a0fcea40c983eff2427fe72072099da Author: Paul Thomas <pa...@gcc.gnu.org> Date: Thu Dec 12 17:50:56 2024 +0000 Fortran: Fix testsuite regressions after r15-5083 [PR117797] 2024-12-12 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/117797 * trans-array.cc (class_array_element_size): New function. (gfc_get_array_span): Refactor, using class_array_element_size to return the span for descriptors that are the _data component of a class expression and then class dummy references. Revert the conditions to those before r15-5083 tidying up using 'sym'. gcc/testsuite/ PR fortran/117797 * gfortran.dg/pr117797.f90: New test. (cherry picked from commit d4330ff9bc9a2995e79d88b09a2ee76673167661)