This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix scope in which undeclared symbols are created
ClosedPublic

Authored by klausler on Sep 1 2021, 2:29 PM.

Details

Summary

Don't create new symbols in FORALL, implied DO, or other
construct scopes when an undeclared name appears; use the
innermost enclosing program unit's scope. This clears up
a pending TODO in name resolution, and also exposes (& fixes)
an unnoticed name resolution problem in a module file test.

Diff Detail

Event Timeline

klausler created this revision.Sep 1 2021, 2:29 PM
klausler requested review of this revision.Sep 1 2021, 2:29 PM
PeteSteinfeld accepted this revision.Sep 2 2021, 1:22 PM

All builds, tests, and looks good.

This revision is now accepted and ready to land.Sep 2 2021, 1:22 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2021, 2:16 PM