[flang] Warn about overflow from folding complex ABS()
authorPeter Klausler <pklausler@nvidia.com>
Tue, 11 Oct 2022 22:00:08 +0000 (15:00 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Sat, 29 Oct 2022 23:07:06 +0000 (16:07 -0700)
commit78d59a6500df1811e99b9413d09c3163b08c693e
tree497628a97503144c406cba19934b0accea7530c6
parentb0764e0b2d8d129f73b2946c062150f1362ebb88
[flang] Warn about overflow from folding complex ABS()

Emit a warning when the result of folding a call to
ABS() with a complex argument results in an overflow.

Differential Revision: https://reviews.llvm.org/D136904
flang/lib/Evaluate/fold-real.cpp
flang/test/Evaluate/errors01.f90