This is an archive of the discontinued LLVM Phabricator instance.

[flang] Warn about local names that are the same as their enclosing program unit
ClosedPublic

Authored by klausler on Dec 1 2022, 2:26 PM.

Details

Summary

Modules, submodules, main programs, and BLOCK DATA subprograms have names
that cannot be used within their scope, so we allow those names to be
used for other entities in the scope. This might not be entirely
conformant with the language standard, so warn about it.

Diff Detail

Event Timeline

klausler created this revision.Dec 1 2022, 2:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2022, 2:26 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Dec 1 2022, 2:26 PM
vdonaldson accepted this revision.Dec 1 2022, 3:10 PM
This revision is now accepted and ready to land.Dec 1 2022, 3:10 PM