[all-commits] [llvm/llvm-project] 5646d8: [flang] Add one semantic check for elemental call ...

PeixinQiao via All-commits all-commits at lists.llvm.org
Tue May 17 00:12:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5646d82885f64f1f886d84aff5422697f355f6c4
      https://github.com/llvm/llvm-project/commit/5646d82885f64f1f886d84aff5422697f355f6c4
  Author: Peixin-Qiao <qiaopeixin at huawei.com>
  Date:   2022-05-17 (Tue, 17 May 2022)

  Changed paths:
    M flang/lib/Semantics/check-call.cpp
    M flang/test/Semantics/call02.f90

  Log Message:
  -----------
  [flang] Add one semantic check for elemental call arguments

As Fortran 2018 15.8.1(3), in a reference to an elemental procedure, if
any argument is an array, each actual argument that corresponds to an
INTENT (OUT) or INTENT (INOUT) dummy argument shall be an array. Add
this semantic check.

Reviewed By: klausler

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




More information about the All-commits mailing list