[flang-commits] [flang] [Flang] Support NULL(procptr): null intrinsic that has procedure pointer argument. (PR #80072)

via flang-commits flang-commits at lists.llvm.org
Wed Jan 31 00:04:44 PST 2024


================
@@ -788,9 +788,13 @@ class Fortran::lower::CallInterfaceImpl {
   void handleImplicitResult(
       const Fortran::evaluate::characteristics::FunctionResult &result,
       bool isBindC) {
-    if (result.IsProcedurePointer())
-      TODO(interface.converter.getCurrentLocation(),
-           "procedure pointer result not yet handled");
+    if (auto proc{result.IsProcedurePointer()}) {
----------------
jeanPerier wrote:

I am surprised that this code is reached. I would expect functions returning procedure pointers to require an explicit interface. Is this needed for the test cases you added?

https://github.com/llvm/llvm-project/pull/80072


More information about the flang-commits mailing list