This is an archive of the discontinued LLVM Phabricator instance.

[flang] Foil attempts to use C_PTR/C_FUNPTR as structure constructors
ClosedPublic

Authored by klausler on Aug 7 2023, 3:24 PM.

Details

Summary

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.

Diff Detail

Event Timeline

klausler created this revision.Aug 7 2023, 3:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2023, 3:24 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 7 2023, 3:24 PM
vdonaldson accepted this revision.Aug 7 2023, 3:53 PM
This revision is now accepted and ready to land.Aug 7 2023, 3:53 PM