This is an archive of the discontinued LLVM Phabricator instance.

[flang] Handle forward references to modules
ClosedPublic

Authored by klausler on Feb 10 2023, 6:00 PM.

Details

Summary

When a USE of a module precedes its definition in the same source
file, ensure that the module is processed by name resolution before
the USE statement. This prevents the risk of the USE statement using
an obsolete module file that is later overwritten during the same
compilation.

Diff Detail

Event Timeline

klausler created this revision.Feb 10 2023, 6:00 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Feb 10 2023, 6:00 PM
vzakhari accepted this revision.Feb 10 2023, 7:24 PM
This revision is now accepted and ready to land.Feb 10 2023, 7:24 PM
This revision was landed with ongoing or failed builds.Feb 12 2023, 6:41 PM
This revision was automatically updated to reflect the committed changes.