[flang-commits] [flang] [llvm] [flang] Implement 'F_C_STRING' library function (Fortran 2023) (PR #174474)

Caroline Newcombe via flang-commits flang-commits at lists.llvm.org
Wed Jan 7 12:37:06 PST 2026


================
@@ -145,4 +145,18 @@ subroutine c_f_procpointer(cptr, fptr)
     ! TODO: implement
   end subroutine c_f_procpointer
 
+  ! F_C_STRING - Convert Fortran string to C null-terminated string
+  ! Fortran 2023 standard intrinsic
+  pure function f_c_string(string, asis) result(res)
----------------
cenewcombe wrote:

@klausler got it, I ran with the submodule suggestion, but if that is not acceptable to all reviewers I will implement as a built-in procedure. I am new to flang and still getting the lay of the land. I appreciate the feedback.

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


More information about the flang-commits mailing list