[flang-commits] [PATCH] D131106: [flang] Don't check procedure pointer interface function result specification expressions

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Aug 9 08:45:53 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG525ff9bd206d: [flang] Don't check procedure pointer interface function result specification… (authored by klausler).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131106

Files:
  flang/lib/Semantics/check-declarations.cpp


Index: flang/lib/Semantics/check-declarations.cpp
===================================================================
--- flang/lib/Semantics/check-declarations.cpp
+++ flang/lib/Semantics/check-declarations.cpp
@@ -291,7 +291,11 @@
         canHaveAssumedParameter |= symbol.has<AssocEntityDetails>();
       }
     }
-    Check(*type, canHaveAssumedParameter);
+    if (IsProcedurePointer(symbol) && symbol.HasExplicitInterface()) {
+      // Don't check function result types here
+    } else {
+      Check(*type, canHaveAssumedParameter);
+    }
     if (InPure() && InFunction() && IsFunctionResult(symbol)) {
       if (derived && HasImpureFinal(*derived)) { // C1584
         messages_.Say(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131106.451175.patch
Type: text/x-patch
Size: 699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220809/3be1ed14/attachment.bin>


More information about the flang-commits mailing list