https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109788

--- Comment #21 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Paul Thomas <[email protected]>:

https://gcc.gnu.org/g:17ef8f931d69752503ec98e707e85e8a67857e1c

commit r14-12569-g17ef8f931d69752503ec98e707e85e8a67857e1c
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)

Reply via email to