Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[OpenMP] Assertion `(SemaRef.CurContext->isDependentContext() || B.builtAll()) && "loop exprs were not built"' failed. #138493

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 May 5, 2025 · 1 comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:openmp OpenMP related changes to Clang crash Prefer [crash-on-valid] or [crash-on-invalid]

Comments

@k-arrows
Copy link

k-arrows commented May 5, 2025

I am not confident if this is a duplicate of #138445, because the backtrace looks a bit different.

Reproducer:
https://godbolt.org/z/83rdTfMod

void f(void) {
#pragma omp simd collapse(a)
  for (int i = 0; i < 10; i++)
    ;
}
@k-arrows k-arrows added clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid] clang:openmp OpenMP related changes to Clang and removed new issue labels May 5, 2025
@llvmbot
Copy link
Member

llvmbot commented May 5, 2025

@llvm/issue-subscribers-clang-frontend

Author: None (k-arrows)

I am not confident if this is a duplicate of https://github.com//issues/138445, because the backtrace looks a bit different.

Reproducer:
https://godbolt.org/z/83rdTfMod

void f(void) {
#pragma omp simd collapse(a)
  for (int i = 0; i &lt; 10; i++)
    ;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:openmp OpenMP related changes to Clang crash Prefer [crash-on-valid] or [crash-on-invalid]
Projects
None yet
Development

No branches or pull requests

2 participants