https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119656
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:334545194d9023fb9b2f72ee0dcde8af94930f25 commit r15-9340-g334545194d9023fb9b2f72ee0dcde8af94930f25 Author: Harald Anlauf <anl...@gmx.de> Date: Tue Apr 8 22:30:15 2025 +0200 Fortran: fix issue with impure elemental subroutine and interface [PR119656] PR fortran/119656 gcc/fortran/ChangeLog: * interface.cc (gfc_compare_actual_formal): Fix front-end memleak when searching for matching interfaces. * trans-expr.cc (gfc_conv_procedure_call): If there is a formal dummy corresponding to an absent argument, use its type, and only fall back to inferred type otherwise. gcc/testsuite/ChangeLog: * gfortran.dg/optional_absent_13.f90: New test.