The overflow detection code in the templates that fold SUM and PRODUCT
was checking for overflow before performing the reduction, not after.
Fix and add tests.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D154374
[flang] Fix overflow detection for folding SUM/PRODUCT ClosedPublic Authored by klausler on Jul 3 2023, 10:27 AM.
Details Summary The overflow detection code in the templates that fold SUM and PRODUCT
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jul 3 2023, 11:56 AM This revision was landed with ongoing or failed builds.Jul 3 2023, 1:03 PM Closed by commit rG58d7484360e7: [flang] Fix overflow detection for folding SUM/PRODUCT (authored by klausler). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 536835 flang/lib/Evaluate/fold-reduction.h
flang/test/Evaluate/errors01.f90
|