[all-commits] [llvm/llvm-project] ffc7f9: [flang] Support external procedure passed as actua...

PeixinQiao via All-commits all-commits at lists.llvm.org
Fri May 6 07:17:16 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ffc7f9d542370eb72ad1f4bf79f763ca685bab8b
  Author: PeixinQiao <qiaopeixin at huawei.com>
  Date:   2022-05-06 (Fri, 06 May 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/Character.h
    M flang/lib/Optimizer/Builder/Character.cpp
    A flang/test/Lower/ext-proc-as-actual-argument-1.f90
    A flang/test/Lower/ext-proc-as-actual-argument-2.f90

  Log Message:
  [flang] Support external procedure passed as actual argument with implicit character type

As Fortran 2018 point 2, the actual argument and dummy argument
have the same type and type parameters and an external function with
assumed character length may be associated with a dummy argument with
explicit character length. As Fortran 2018 point 7, if an
external procedure is used as an actual argument, it can be explicitly
declared to have the EXTERNAL attribute. This supports the external
procedure passed as actual argument with implicit character type, either
explicit character length or assumed character length.

Reviewed By: Jean Perier, klausler

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

More information about the All-commits mailing list