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

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Thu May 8 09:33:31 PDT 2025


AmrDeveloper 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
> 
> ```c++
> void f(void) {
> #pragma omp for ordered(0xFFFFFFFFFFFFFFFF)
>   for (int i = 0; i < 10; i++)
>     ;
> }
> ```

Thank you, yes, it will fix this case too

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


More information about the cfe-commits mailing list