https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109788
--- Comment #20 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Paul Thomas <[email protected]>: https://gcc.gnu.org/g:471bbac76802387f7f876ebc51c8abcb443ddd07 commit r15-11137-g471bbac76802387f7f876ebc51c8abcb443ddd07 Author: Christopher Albert <[email protected]> Date: Sat Mar 28 16:57:02 2026 +0100 fortran: Fix character SPREAD intrinsic lowering [PR109788] Copy the SPREAD intrinsic descriptor before specializing the character formal argument type so other uses keep the generic signature. PR fortran/109788 gcc/fortran/ChangeLog: * iresolve.cc (copy_intrinsic_sym): New helper. (gfc_resolve_spread): Copy the intrinsic descriptor before specializing the character formal argument type. gcc/testsuite/ChangeLog: * gfortran.dg/pr109788.f90: New test. Signed-off-by: Christopher Albert <[email protected]> (cherry picked from commit ebc8ed3246ff5949c2e4cf8af6726c5111ef381f)
