This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix bug with USE of USE of generic
ClosedPublic

Authored by tskeith on Dec 15 2020, 2:46 PM.

Details

Summary

When merging use associations into a generic, we weren't handling
the case where the name that was use associated was itself a use
association. This is fixed by following that association to its
ultimate symbol (useUltimate in DoAddUse).

An example of the bug is m12d in resolve17.f90. g is associated
with gc in m12c which is associated with gb in m12b. It was that
last association that we weren't correctly following.

Diff Detail

Event Timeline

tskeith created this revision.Dec 15 2020, 2:46 PM
tskeith requested review of this revision.Dec 15 2020, 2:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2020, 2:46 PM
PeteSteinfeld accepted this revision.Dec 15 2020, 3:04 PM

All builds, tests, and looks good.

This revision is now accepted and ready to land.Dec 15 2020, 3:04 PM
klausler accepted this revision.Dec 15 2020, 3:49 PM
This revision was landed with ongoing or failed builds.Dec 15 2020, 4:12 PM
This revision was automatically updated to reflect the committed changes.