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

            Bug ID: 126205
           Summary: A coarray allocated in a team is not being
                    automatically deallocated
           Product: gcc
           Version: 16.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pault at gcc dot gnu.org
  Target Milestone: ---

>From John Reid's "Summary_of_Fortran_2018":

3.5 Coarrays allocated in teams

....snip....

In Fortran 2018, synchronization is now across the team, of course. Symmetric
memory is maintained within teams by requiring that

1. any allocatable coarray that is allocated before entry to a change team
construct remains allocated during the execution of the construct and
2. any allocatable coarray that becomes allocated within a change team
construct and is still allocated when the construct is left is automatically
deallocated, even if it has the save attribute.

....more snips....

Requirement 2 is not yet implemented in gfortran.

Paul

Reply via email to