Created attachment 24567 [details] reproducer The test case is attached. Compilation command: ``` $ clang++ -fopenmp -fopenmp-targets=x86_64 bug.cpp ```
It's confirmed. Try to fix it in https://reviews.llvm.org/D97329.
Merged: d24e102ba266
The test case for this hangs when running on amdgpu offloading, have not determined why.