Skip to content

[flang][OpenMP] Regression with character allocatables and FIRSTPRIVATE #126261

Closed
@eugeneepshteyn

Description

@eugeneepshteyn

The following sample started regressing recently:

  implicit none
  character(10), allocatable :: src
  integer :: i
  src = "hello"
  !$OMP PARALLEL DO FIRSTPRIVATE(src)
    Do i=1,1
    End Do
  !$OMP END PARALLEL DO
  end

Failure:

$ flang -c -fopenmp test.f90 
flang-21: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
error: loc(".../test.f90":2:33): 'fir.embox' op CHARACTER already has static LEN
error: verification of lowering to FIR failed
$ flang --version
flang version 21.0.0git (https://github.com/llvm/llvm-project c32cd5746b1335ed172d1bf58fb6498b479bd8e0)
Target: x86_64-unknown-linux-gnu
Thread model: posix
...

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions