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

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

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

commit r17-685-gc9f26edda05b045d98c87d8c5dc0163f2cd0b652
Author: Paul Thomas <[email protected]>
Date:   Sat May 23 14:40:19 2026 +0100

    Fortran: Fix ICE in allocatable finalization expression [PR125391]

    2026-05-23  Paul Thomas  <[email protected]>

    gcc/fortran
            PR fortran/125391
            * trans.cc (gfc_assignment_finalizer_call): For finalization of
            allocatable and pointer lhs before assignment, gfc_conv_expr
            should be used with se.descriptor_only. This avoids implicit of
            set_factored_descriptor_value by gfc_conv_expr_descriptor.

    gcc/testsuite/
            PR fortran/125391
            * gfortran.dg/pr125391.f90: New test.

Reply via email to