Skip to content

[flang][OpenMP] runtime segfault when an allocatable variable is used with copyin #113191

@tblah

Description

@tblah
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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions