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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jerry DeLisle <[email protected]>:

https://gcc.gnu.org/g:21814c1470de32bb742c2f0a1b505323e1b8ff26

commit r17-5066-g21814c1470de32bb742c2f0a1b505323e1b8ff26
Author: Jerry DeLisle <[email protected]>
Date:   Wed Jun 10 08:37:01 2026 -0700

    fortran: [PR125724] ICE passing NULL() to an allocatable dummy argument

    Pass a NULL() actual argument for a non-class, non-character
    allocatable dummy through conv_null_actual, as for derived-type
    dummies.

    Assisted-by: Claude Opus 5.5

            PR fortran/125724

    gcc/fortran/ChangeLog:

            * trans-expr.cc (conv_null_actual): Handle intrinsic allocatable
            and pointer dummies.
            (gfc_conv_procedure_call): Use conv_null_actual for a NULL()
            actual with a non-class, non-character allocatable dummy.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/null_actual_8.f90: New test.
  • [Bug fortran/125724] ICE in gfc... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to