Issue 133685
Summary [Flang][OpenMP] only assertion-enabled flang can reach llvm_unreachable (cancel directive)
Labels flang
Assignees
Reporter k-arrows
    Reproducer:
```f90
program test
!$omp cancel parallel do
end
```

With assertion-enabled flang, the following output is obtained:
```txt
Unexpected directive
UNREACHABLE executed at /path_to_project/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:2521!
```

The location of this llvm_unreachable is:
https://github.com/llvm/llvm-project/blob/809f857d2c8edffe1dac317982b68a467710f877/flang/lib/Semantics/check-omp-structure.cpp#L2521
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to