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

--- Comment #4 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:d553ca787f1f9797ebe1e33fc189cc4a5220c136

commit r15-10014-gd553ca787f1f9797ebe1e33fc189cc4a5220c136
Author: Harald Anlauf <[email protected]>
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)

Reply via email to