This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix symbol table bugs with ENTRY statements
ClosedPublic

Authored by klausler on May 21 2021, 2:52 PM.

Details

Summary

Dummy arguments of ENTRY statements in execution parts were
not being created as objects, nor were they being implicitly
typed.

When the symbol corresponding to an alternate ENTRY point
already exists (by that name) due to having been referenced
in an earlier call, name resolution used to delete the extant
symbol. This isn't the right thing to do -- the extant
symbol will be pointed to by parser::Name nodes in the parse
tree while no longer being part of any Scope.

Diff Detail

Event Timeline

klausler created this revision.May 21 2021, 2:52 PM
klausler requested review of this revision.May 21 2021, 2:52 PM
PeteSteinfeld accepted this revision.May 21 2021, 3:43 PM

All builds, tests, and looks good.

This revision is now accepted and ready to land.May 21 2021, 3:43 PM
klausler closed this revision.Jun 2 2021, 6:06 PM