[clang] [clang][OpenMP] Add error for large expr in collapse clause (PR #138592)

via cfe-commits cfe-commits at lists.llvm.org
Wed May 7 16:19:52 PDT 2025


k-arrows wrote:

In addition to the collapse clause, the ordered clause also seems to have the same problem. For example, does your patch also fix the following crash? If so, you also need tests regarding the ordered clause.
https://godbolt.org/z/96sa5jxff
```cpp
void f(void) {
#pragma omp for ordered(0xFFFFFFFFFFFFFFFF)
  for (int i = 0; i < 10; i++)
    ;
}
```

https://github.com/llvm/llvm-project/pull/138592


More information about the cfe-commits mailing list