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

            Bug ID: 115577
           Summary: [OpenMP] COMMON names rejected in MAP clauses
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: openmp, rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
  Target Milestone: ---

Using  map(/common/)  is rejected in gfortran but is valid:

   10 |    !$omp target enter data map(/mycommon/)
      |                                1
Error: Syntax error in OpenMP variable list at (1)

( Example from PR fortran/115559
  Please update libgomp.fortran/declare-target-link-2.f90 once fixed )

subroutine one
   integer :: A(2),C
   real :: B
   common /mycommon/ A,B,C
   !$omp declare target link(/mycommon/)

   A = [1,2]; B = 2.0; C = 7
   !$omp target enter data map(/mycommon/)
end

Reply via email to