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

--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Harald Anlauf
<[email protected]>:

https://gcc.gnu.org/g:be11d636a46a330352a85dc06f804644f6a64e0b

commit r15-11042-gbe11d636a46a330352a85dc06f804644f6a64e0b
Author: Harald Anlauf <[email protected]>
Date:   Wed Apr 1 22:28:02 2026 +0200

    Fortran: fix passing a procedure pointer to c_funloc [PR124652]

            PR fortran/124652

    gcc/fortran/ChangeLog:

            * trans-expr.cc (gfc_conv_procedure_call): Do not clobber a
            procedure pointer intent(out) argument.
            * trans-intrinsic.cc (conv_isocbinding_function): When passing to
            C_FUNLOC a procedure pointer that is a dummy, dereference it.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/c_funloc_tests_10.f90: New test.

    (cherry picked from commit ae9b5fc970cd4c5709e03ea90d1031b0426a4964)

Reply via email to