[flang-commits] [PATCH] D103573: [flang] Emit error about missing interface when needed
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Jun 3 15:20:08 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc1a024053d3b: [flang] Emit error about missing interface when needed (authored by klausler).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103573/new/
https://reviews.llvm.org/D103573
Files:
flang/lib/Semantics/expression.cpp
flang/test/Semantics/resolve09.f90
Index: flang/test/Semantics/resolve09.f90
===================================================================
--- flang/test/Semantics/resolve09.f90
+++ flang/test/Semantics/resolve09.f90
@@ -18,6 +18,7 @@
!ERROR: Cannot call function 'f' like a subroutine
call f
!ERROR: Cannot call subroutine 's' like a function
+ !ERROR: Function result characteristics are not known
i = s()
contains
function f()
Index: flang/lib/Semantics/expression.cpp
===================================================================
--- flang/lib/Semantics/expression.cpp
+++ flang/lib/Semantics/expression.cpp
@@ -3000,6 +3000,8 @@
DEREF(result.GetTypeAndShape()).type(),
ProcedureRef{std::move(proc), std::move(arguments)});
}
+ } else {
+ Say("Function result characteristics are not known"_err_en_US);
}
}
return std::nullopt;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103573.349706.patch
Type: text/x-patch
Size: 878 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210603/366fa242/attachment.bin>
More information about the flang-commits
mailing list