Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
k-arrows opened this issue Mar 31, 2025 · 1 comment
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] flang:frontend flang:openmp

Comments

@k-arrows
Copy link

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");

@llvmbot llvmbot added the flang Flang issues not falling into any other category label Mar 31, 2025
@k-arrows k-arrows added flang:openmp and removed flang Flang issues not falling into any other category labels Mar 31, 2025
@EugeneZelenko EugeneZelenko added flang:frontend crash Prefer [crash-on-valid] or [crash-on-invalid] labels Mar 31, 2025
@llvmbot
Copy link
Member

llvmbot commented Mar 31, 2025

@llvm/issue-subscribers-flang-frontend

Author: None (k-arrows)

Reproducer: ```f90 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");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] flang:frontend flang:openmp
Projects
None yet
Development

No branches or pull requests

3 participants