https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121145
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:087fe1daf1024c3d481b708c40cf47cc26b06a3a commit r14-11976-g087fe1daf1024c3d481b708c40cf47cc26b06a3a Author: Harald Anlauf <anl...@gmx.de> Date: Fri Jul 18 21:12:03 2025 +0200 Fortran: fix bogus runtime error with optional procedure argument [PR121145] PR fortran/121145 gcc/fortran/ChangeLog: * trans-expr.cc (gfc_conv_procedure_call): Do not create pointer check for proc-pointer actual passed to optional dummy. gcc/testsuite/ChangeLog: * gfortran.dg/pointer_check_15.f90: New test. (cherry picked from commit 8f9450505f8244d262f8b4ff274f113f99cdc7e2)