[all-commits] [llvm/llvm-project] 2d528f: [flang] Warn about defined operator with too few/m...

Peter Klausler via All-commits all-commits at lists.llvm.org
Sat Jan 28 10:15:55 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d528fd7d7f6a84e50edb1a9ea3822b4edeb3e01
      https://github.com/llvm/llvm-project/commit/2d528fd7d7f6a84e50edb1a9ea3822b4edeb3e01
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-01-28 (Sat, 28 Jan 2023)

  Changed paths:
    M flang/include/flang/Parser/message.h
    M flang/lib/Semantics/check-declarations.cpp
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Semantics/generic04.f90

  Log Message:
  -----------
  [flang] Warn about defined operator with too few/many dummy arguments

A function in a defined operator generic interface will syntactically
have one or two arguments.  If a defined operator includes a specific
function with 0 or more than 2 dummy arguments, there's no way that it
could be invoked by way of the interface.  Emit a warning.

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




More information about the All-commits mailing list