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

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

commit r17-4876-g30907bc0f06bbd71e657311cfc43b9dab4e58e35
Author: Jerry DeLisle <[email protected]>
Date:   Sun Oct 4 10:17:27 2026 -0700

    fortran: [PR127724] ICE inserting coarray deallocation before END TEAM

    Find the END TEAM statement by walking the team block's code list from
    its head, and splice the guarded deallocation in front of it.

    Assisted-by: Claude Opus 5.5

            PR fortran/127724

    gcc/fortran/ChangeLog:

            * st.cc (deallocate_allocated_coarrays): Insert the guarded
            deallocation before EXEC_END_TEAM, starting from the head of
            the code list.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/coarray/team_allocated_coarrays_2.f90: New test.

Reply via email to