Commit 28e336f
committed
[Flang][OpenMP] Skip implicit mapping of named constants
Added early return when mapping implicit variables for named constants.
This prevents linking error in the following example:
program test
use, intrinsic :: iso_c_binding, only: c_double
implicit none
real(c_double) :: x
integer :: i
x = 0.0_c_double
!$omp target teams distribute parallel do reduction(+:x)
do i = 0, 9
x = x + 1.0_c_double
end do
!$omp end target teams distribute parallel do
end program test1 parent 836ff36 commit 28e336f
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2395 | 2395 | | |
2396 | 2396 | | |
2397 | 2397 | | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
2398 | 2402 | | |
2399 | 2403 | | |
2400 | 2404 | | |
| |||
0 commit comments