You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version of flang-new : 18.0.0(1c876ff5155c4feeb2b2885eb3e6abda17c4b7f4)
When pointer variable with private attribute is output in task construct, execution terminates abnormally.
The following are the test program, Flang-new, Gfortran and ifort compilation result.
snes_task_016_2.f90:
PROGRAM main
INTEGER, TARGET ::A,B=0INTEGER, POINTER ::P
call omp_set_num_threads(2)
A=100
B=50
!$OMP PARALLEL PRIVATE(P)
P=>A
!$OMP TASK
PRINT'("[TSK-1] P=",i3)',P
P=>B
!$OMP END TASK
!$OMP END PARALLEL
end PROGRAM main