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
From the other issue, now fixed: (B) Issues found when writing a testcase: * COMMON blocks: Using map(a,b,c) instead of map(/mycommon/) fails with: error: undefined symbol: mycommon_ TESTCASE: attachment 58478 [details] ISSUE (A) is (→ comment 0): 10 | !$omp target enter data map(/mycommon/) | 1 Error: Syntax error in OpenMP variable list at (1)