This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix USE with homonymous renaming
ClosedPublic

Authored by klausler on Jun 21 2023, 11:48 AM.

Details

Summary

Fortran requires that a USE with renaming prevent the USE'd symbol
from also being associated into a scope without renaming. The
implementation in name resolution gets confused in the case of
a USE with renaming using the same name ("x => x"). Clean things
up. Fixes LLVM bug https://github.com/llvm/llvm-project/issues/63397.

Diff Detail

Event Timeline

klausler created this revision.Jun 21 2023, 11:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2023, 11:48 AM
klausler requested review of this revision.Jun 21 2023, 11:48 AM
PeteSteinfeld accepted this revision.Jun 21 2023, 12:14 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jun 21 2023, 12:14 PM
This revision was automatically updated to reflect the committed changes.