llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.61k stars 11.82k forks source link

[Flang][OpenMP] llvm-project/flang/lib/Lower/Bridge.cpp:618: virtual bool (anonymous namespace)::FirConverter::createHostAssociateVarClone(const Fortran::semantics::Symbol &): Assertion `details && "No host-association found"' failed. #83711

Open k-arrows opened 7 months ago

k-arrows commented 7 months ago

Crash itself is reproducible on Godbolt https://godbolt.org/z/q8z4GPxGT

Reproducer (flang-new -fopenmp test.f90)

$ cat test.f90
  integer :: x
  integer, external, pointer :: y
!$omp parallel private(x) firstprivate(y)
  x = y(1)
!$omp end parallel
end
k-arrows commented 7 months ago

With the recently built flang-new, the compilation(flang-new -fopenmp test.f90) results in the following assertion failure:

flang-new: /path_to_llvm_project/llvm-project/flang/lib/Lower/Bridge.cpp:618: virtual bool (anonymous namespace)::FirConverter::createHostAssociateVarClone(const Fortran::semantics::Symbol &): Assertion `details && "No host-association found"' failed.

Maybe a duplicate of https://github.com/llvm/llvm-project/issues/67227.