Issue 147063
Summary [flang][OpenMP][debug] Invalid debug locations cause verification failures.
Labels flang
Assignees abidh
Reporter abidh
    Consider the following program.

```
program test
  implicit none
  call fn()

contains
  subroutine fn()
    integer v

    !$omp parallel private(v)
      v = 1
      !$omp target
        v = v + 1
      !$omp end target
    !$omp end parallel
  end subroutine fn
end program test
```
when compiled with the following command

`flang -fc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -debug-info-kind=standalone -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -O0` 

fails with this error.

```
inlinable function call in a function with debug info must have a !dbg location
  call void @__omp_offloading_10303_14e985b__QFPfn_l11(ptr %omp.private.alloc)
```

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to