https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109345
--- Comment #5 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:d65a599795df85fd0974bdfc1597cc3013b670f9 commit r14-10974-gd65a599795df85fd0974bdfc1597cc3013b670f9 Author: Paul Thomas <pa...@gcc.gnu.org> Date: Mon Nov 11 12:21:57 2024 +0000 Fortran: Fix elemental array refs in SELECT TYPE [PR109345] 2024-11-10 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/109345 * trans-array.cc (gfc_get_array_span): Unlimited polymorphic expressions are now treated separately since the span need not be the same as the element size. gcc/testsuite/ PR fortran/109345 * gfortran.dg/character_workout_1.f90: Cut trailing whitespace. * gfortran.dg/pr109345.f90: New test. (cherry picked from commit e22d80d4f0f8d33f538c1a4bad07b2c819a6d55c)