Skip to content

[Flang][OpenMP] only assertion-enabled flang can reach llvm_unreachable (cancel directive) #133685

@k-arrows

Description

@k-arrows

Reproducer:

program test
!$omp cancel parallel do
end

With assertion-enabled flang, the following output is obtained:

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:

llvm_unreachable("Unexpected directive");

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions