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

            Bug ID: 119905
           Summary: [OpenMP] Fortran deep mapping of allocatable
                    components: Recursive types and FIRSTPRIVATE/PRIVATE
                    not handled
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: openmp, rejects-valid, wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
  Target Milestone: ---

Created attachment 61174
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61174&action=edit
Testcase libgomp.fortran/map-alloc-comp-11.f90 - uses recursive types

Recursive types, i.e.
  type t
    type(t), allocatable :: next
  end type t

are not handled in with OpenMP's MAP clause

Additionally, while deep mapping works with the MAP clause, it does not work
with the FIRSTPRIVATE.

It likely also fails with PRIVATE and default initializers,
cf. PR 101602 comment 6 and PR 99519 for similar issues related to PRIVATE.

Reply via email to