[flang-commits] [PATCH] D114750: [flang] Fix usage & catch errors for MAX/MIN with keyword= arguments

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Nov 29 15:34:34 PST 2021


klausler created this revision.
klausler added a reviewer: Renaud-K.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
klausler requested review of this revision.

MAX(), MIN(), and their specific variants are defined with an unlimited
number of dummy arguments named A1=, A2=, &c. whose names are almost never
used in practice but should be allowed for and properly checked for the
usual errors when they do appear.  The intrinsic table's entries otherwise
have fixed numbers of dummy argument definitions, so add some special
case handling in a few spots for MAX/MIN/&c. checking and procedure
characteristics construction.


https://reviews.llvm.org/D114750

Files:
  flang/lib/Evaluate/intrinsics.cpp
  flang/test/Evaluate/folding01.f90
  flang/test/Semantics/call23.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114750.390497.patch
Type: text/x-patch
Size: 6137 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20211129/79bc1394/attachment.bin>


More information about the flang-commits mailing list