[flang-commits] [flang] [flang] Produce warning instead of error when bound checking arrays (PR #83011)

Jeff Hammond via flang-commits flang-commits at lists.llvm.org
Mon Feb 26 10:55:41 PST 2024


jeffhammond wrote:

ugh, if `dbl_mb` triggers this then all of NWChem is broken with bounds checking.

@klausler for context, `dbl_mb` is used to implement a heap allocator.  it's a common block member and C code increases the size of it, in spite of its declaration.  the whole thing is trash but rewriting to use `allocate` would take years.

in theory, we can increase the size by some amount that makes it much harder for the compiler to prove OOB errors (that aren't really errors, thanks to C) but i don't know how well this will work.

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


More information about the flang-commits mailing list