llvm-project
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.
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
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.
This crash cannot be reproduced with the latest flang. I will close this issue.