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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon May 12 04:24:25 PDT 2025


================
@@ -521,6 +521,8 @@ Improvements to Clang's diagnostics
 - Fixed a duplicate diagnostic when performing typo correction on function template
   calls with explicit template arguments. (#GH139226)
 
+- An error is now emitted when OpenMP ``collapse`` and ``ordered`` clauses has expression larger than 64 bit.
----------------
AaronBallman wrote:

```suggestion
- An error is now emitted when OpenMP ``collapse`` and ``ordered`` clauses have an argument larger than what can fit within a 64-bit integer.
```

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


More information about the cfe-commits mailing list