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