[flang-commits] [PATCH] D136974: [flang] Emit warnings when results of folding some integer intrinsics overflow

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Oct 28 13:02:52 PDT 2022


klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

When the compile-time result value of a reference to an integer-valued intrinsic
function COUNT, ICHAR, IACHAR, INDEX, SCAN, or VERIFY cannot be represented in
the selected result kind, emit a warning.


https://reviews.llvm.org/D136974

Files:
  flang/lib/Evaluate/fold-integer.cpp
  flang/test/Evaluate/folding05.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136974.471630.patch
Type: text/x-patch
Size: 6074 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221028/81b587a6/attachment-0001.bin>


More information about the flang-commits mailing list