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

via cfe-commits cfe-commits at lists.llvm.org
Tue May 6 01:42:45 PDT 2025


https://github.com/k-arrows commented:

I am not a developer, so I won't review the implementation, but I have one comment. The way I originally wrote the bug report was poor, but it is not necessary to limit the fix and its test to OpenMP SIMD. For example, the code below also crashes:
https://godbolt.org/z/7T8MbE5j5
```cpp
void f(void) {
#pragma omp for collapse(0xFFFFFFFFFFFFFFFF)
  for (int i = 0; i < 10; i++)
    ;
}
```

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


More information about the cfe-commits mailing list