https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121203
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:4cb9e69bf843d0102de14050e3b59b3475f111b1 commit r15-10071-g4cb9e69bf843d0102de14050e3b59b3475f111b1 Author: Harald Anlauf <anl...@gmx.de> Date: Tue Jul 22 20:16:16 2025 +0200 Fortran: fix passing of character length of function to procedure [PR121203] PR fortran/121203 gcc/fortran/ChangeLog: * trans-expr.cc (gfc_conv_procedure_call): Obtain the character length of an assumed character length procedure from the typespec of the actual argument even if there is no explicit interface. gcc/testsuite/ChangeLog: * gfortran.dg/function_charlen_4.f90: New test. (cherry picked from commit 53b64337ef325c4e47ae96ea8dea86031a3a0602)