[PATCH] D88075: [flang] CHARACTER(*) return does not require explicit interface

Jean Perier via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 04:38:57 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGbd72ed93d22a: [flang] CHARACTER(*) return does not require explicit interface (authored by jeanPerier).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88075/new/

https://reviews.llvm.org/D88075

Files:
  flang/lib/Evaluate/characteristics.cpp


Index: flang/lib/Evaluate/characteristics.cpp
===================================================================
--- flang/lib/Evaluate/characteristics.cpp
+++ flang/lib/Evaluate/characteristics.cpp
@@ -485,6 +485,8 @@
         if (const auto *param{type.charLength()}) {
           if (const auto &expr{param->GetExplicit()}) {
             return IsConstantExpr(*expr); // 15.4.2.2(4)(c)
+          } else if (param->isAssumed()) {
+            return true;
           }
         }
         return false;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88075.293696.patch
Type: text/x-patch
Size: 508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200923/277045e5/attachment.bin>


More information about the llvm-commits mailing list