[flang-commits] [PATCH] D132685: [flang] Make C_F_POINTER a generic interface

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Aug 25 15:47:40 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG194778117e57: [flang] Make C_F_POINTER a generic interface (authored by klausler).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132685

Files:
  flang/module/iso_c_binding.f90


Index: flang/module/iso_c_binding.f90
===================================================================
--- flang/module/iso_c_binding.f90
+++ flang/module/iso_c_binding.f90
@@ -83,6 +83,10 @@
   end interface
   private :: c_associated_c_ptr, c_associated_c_funptr
 
+  interface c_f_procpointer
+    module procedure c_f_procpointer
+  end interface
+
   ! gfortran extensions
   integer, parameter :: &
     c_float128 = 16, &
@@ -120,6 +124,10 @@
     c_funloc = c_funptr(loc(x))
   end function c_funloc
 
-  ! TODO c_f_procpointer
+  subroutine c_f_procpointer(cptr, fptr)
+    type(c_funptr), intent(in) :: cptr
+    procedure(), pointer, intent(out) :: fptr
+    ! TODO: implement
+  end subroutine c_f_procpointer
 
 end module iso_c_binding


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132685.455744.patch
Type: text/x-patch
Size: 753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220825/18af12ab/attachment.bin>


More information about the flang-commits mailing list