This is an archive of the discontinued LLVM Phabricator instance.

[flang] Better C_LOC and C_ASSOCIATED in flang/module
ClosedPublic

Authored by klausler on Jan 14 2021, 12:52 PM.

Details

Summary

The place-holding implementation of C_LOC just didn't work
when used with our more complete semantic checking, specifically
in the case of a polymorphic argument; convert it to an external
function with an implicit interface. C_ASSOCIATED needs to be
a generic interface with specific implementations for C_PTR and
C_FUNPTR.

Diff Detail

Event Timeline

klausler created this revision.Jan 14 2021, 12:52 PM
klausler requested review of this revision.Jan 14 2021, 12:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 14 2021, 12:52 PM
PeteSteinfeld accepted this revision.Jan 21 2021, 9:37 AM

I don't understand these changes very well, but it all builds and tests correctly.

This revision is now accepted and ready to land.Jan 21 2021, 9:37 AM
This revision was automatically updated to reflect the committed changes.