[flang-commits] [PATCH] D157343: [flang] Foil attempts to use C_PTR/C_FUNPTR as structure constructors

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Aug 7 15:24:20 PDT 2023


klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

The internal details of the C_PTR and C_FUNPTR types must be made private
so that user code can't try to access their components or attempt to use
their structure constructors.

Fixes llvm-test-suite/Fortran/fortran/c_ptr_tests_13.f90.


https://reviews.llvm.org/D157343

Files:
  flang/module/__fortran_builtins.f90
  flang/module/iso_c_binding.f90
  flang/test/Semantics/c_loc01.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157343.547975.patch
Type: text/x-patch
Size: 6446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230807/3d9189c1/attachment-0001.bin>


More information about the flang-commits mailing list