[all-commits] [llvm/llvm-project] 196204: [flang] Fix usage & catch errors for MAX/MIN with ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Nov 30 12:54:04 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 196204c72c68a577c72af95d70f18e3550939a5e
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

  Changed paths:
    M flang/lib/Evaluate/intrinsics.cpp
    M flang/test/Evaluate/folding01.f90
    A flang/test/Semantics/call23.f90

  Log Message:
  [flang] Fix usage & catch errors for MAX/MIN with keyword= arguments

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.

Differential Revision: https://reviews.llvm.org/D114750

More information about the All-commits mailing list