[all-commits] [llvm/llvm-project] 1062f9: [flang] Expunge bogus semantic check for ELEMENTAL...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Oct 14 14:33:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1062f989af23c52a472892ff54a55557fca35528
      https://github.com/llvm/llvm-project/commit/1062f989af23c52a472892ff54a55557fca35528
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-10-14 (Thu, 14 Oct 2021)

  Changed paths:
    M flang/lib/Semantics/check-declarations.cpp
    M flang/test/Semantics/elemental01.f90

  Log Message:
  -----------
  [flang] Expunge bogus semantic check for ELEMENTAL without dummies

Semantics refuses valid ELEMENTAL subprograms without dummy arguments,
but there's no such constraint in the standard; indeed, subclause
15.8.2 discusses the meaning of calls to ELEMENTAL functions with
arguments.  Remove the check and its test.

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




More information about the All-commits mailing list