[flang-commits] [flang] [flang] Do not leak intrinsics used by ISO_C_BINDING and ISO_FORTRAN_ENV (PR #79006)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Mon Jan 22 09:42:34 PST 2024


================
@@ -22,15 +22,32 @@ module iso_c_binding
     c_sizeof => sizeof, &
     operator(==), operator(/=)
 
+  implicit none
+
+  ! Set PRIVATE by default to explicitly only export what is meant
+  ! to be exported by this MODULE.
+  private
+
+  public :: c_associated, &
----------------
klausler wrote:

If you're going to put each of these on its own line, please don't have a line with two.  Or just cram them all on to a few lines to save vertical space.

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


More information about the flang-commits mailing list