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

--- Comment #7 from GCC 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:ec237e7644a4509d3bc8c5cfe4b34060c9a665fe

commit r13-9557-gec237e7644a4509d3bc8c5cfe4b34060c9a665fe
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.

    (cherry picked from commit 334545194d9023fb9b2f72ee0dcde8af94930f25)

Reply via email to