llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[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.

Open k-arrows opened this issue 1 year ago • 1 comments

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 avatar Mar 03 '24 07:03 k-arrows

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.

k-arrows avatar Mar 24 '24 11:03 k-arrows

This crash cannot be reproduced with the latest flang. I will close this issue.

k-arrows avatar May 25 '25 14:05 k-arrows