Description
program foo
real, allocatable :: ra
!$omp threadprivate(ra)
allocate(ra)
ra = 10
!$omp parallel num_threads(2) copyin(ra)
print *,ra
!$omp end parallel
end program
Compiling with flang -fopenmp
version 8e6abf52e7
gives a segfault in the compiled aplication after the print.
CC @DavidTruby