Please see the testcase below.
program nowait_reproducer
implicit none
real x
!$omp target map(tofrom: x) nowait
x = x + 1
!$omp end target
end program nowait_reproducer
This is what I get when I try to compile it with -g.
flang -g -O0 test.f90 -fopenmp
flang-20: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
inlinable function call in a function with debug info must have a !dbg location
call void @__omp_offloading_10302_4986ae0__QQmain_l10(ptr %1)
error: failed to create the LLVM module