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

--- Comment #6 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:0bb59375211478da9d4f219b829bf66924387bbe

commit r17-4843-g0bb59375211478da9d4f219b829bf66924387bbe
Author: Jerry DeLisle <[email protected]>
Date:   Sat Sep 19 12:24:05 2026 -0700

    libgfortran: [PR127347] caf_shmem: allocate a coarray part for every image

    Each image's part of a coarray is located by the image's index among
    all images, both locally and for a remote access through the team's
    image map.  The allocation was sized for the images of the current
    team, so in a child team the images whose index exceeds the team's
    size wrote past the end of the allocation, over the next one.

    Allocate a part for every image of the program.

    Assisted-by: Claude Opus 5

            PR libfortran/127347

    libgfortran/ChangeLog:

            * caf/shmem.c (_gfortran_caf_register): Allocate a part for every
            image of the program.

    gcc/testsuite/ChangeLog:

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

Reply via email to