This is an archive of the discontinued LLVM Phabricator instance.

[flang] Don't implicitly host-associate unknown EQUIVALENCE designators
ClosedPublic

Authored by klausler on Aug 28 2023, 3:48 PM.

Details

Summary

When resolving names in a specification part, unknown names that appear
in a specification expression before any local declaration are assumed
to be implicitly declared objects in the host scope. Objects in
EQUIVALENCE sets are not part of specification expressions, so ensure
that they do not receive this treatment; besides being wrong and
unimplementable, it will lead to a later crash during offset assignment.

Diff Detail

Event Timeline

klausler created this revision.Aug 28 2023, 3:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2023, 3:48 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 28 2023, 3:48 PM
vdonaldson accepted this revision.Aug 28 2023, 3:58 PM
This revision is now accepted and ready to land.Aug 28 2023, 3:58 PM
This revision was landed with ongoing or failed builds.Aug 29 2023, 8:33 AM
This revision was automatically updated to reflect the committed changes.