[all-commits] [llvm/llvm-project] bd72ed: [flang] CHARACTER(*) return does not require expli...

jeanPerier via All-commits all-commits at lists.llvm.org
Wed Sep 23 04:39:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bd72ed93d22a1579362859e64a0c7f9c68460cf8
      https://github.com/llvm/llvm-project/commit/bd72ed93d22a1579362859e64a0c7f9c68460cf8
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2020-09-23 (Wed, 23 Sep 2020)

  Changed paths:
    M flang/lib/Evaluate/characteristics.cpp

  Log Message:
  -----------
  [flang] CHARACTER(*) return does not require explicit interface

Fortran 2018 15.4.2.2(4)(c) says nonassumed or explicit non-constant
length parameter require explicit interface. The "nonassumed" part was
missing in f18 characteristic analysis causing CanBeCalledViaImplicitInterface
to return false for `CHARACTER(*) function foo()` like interfaces.

Reviewed By: klausler

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




More information about the All-commits mailing list