This is an archive of the discontinued LLVM Phabricator instance.

[flang] Resolve USE vs IMPORT conflicts
ClosedPublic

Authored by klausler on Apr 1 2023, 2:21 PM.

Details

Summary

When the same name is pulled into a scope more than once via
USE and IMPORT, emit an error if its resolutions are ambiguous,
or (as an extension like some other compilers) emit a portability
warning when the names all resolve to the same symbol.

Diff Detail

Event Timeline

klausler created this revision.Apr 1 2023, 2:21 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Apr 1 2023, 2:21 PM
PeteSteinfeld accepted this revision.Apr 3 2023, 8:40 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Apr 3 2023, 8:40 AM
This revision was automatically updated to reflect the committed changes.