https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110288
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:447dd2924e43884d798d8c40765cbfddd0fde0ae commit r13-7564-g447dd2924e43884d798d8c40765cbfddd0fde0ae Author: Harald Anlauf <anl...@gmx.de> Date: Tue Jul 11 21:21:25 2023 +0200 Fortran: formal symbol attributes for intrinsic procedures [PR110288] gcc/fortran/ChangeLog: PR fortran/110288 * symbol.cc (gfc_copy_formal_args_intr): When deriving the formal argument attributes from the actual ones for intrinsic procedure calls, take special care of CHARACTER arguments that we do not wrongly treat them formally as deferred-length. gcc/testsuite/ChangeLog: PR fortran/110288 * gfortran.dg/findloc_10.f90: New test. (cherry picked from commit 3b2c523ae31b68fc3b8363b458a55eec53a44365)