Skip to content

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

@k-arrows

Description

@k-arrows

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++)
    ;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"clang:openmpOpenMP related changes to ClangconfirmedVerified by a second partycrashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions