This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix spurious error with COMMON and EQUIVALENCE
ClosedPublic

Authored by klausler on Sep 22 2022, 3:01 PM.

Details

Summary

f18 emits an error message when two objects related by EQUIVALENCE
to a third are specified as members of a COMMON block. This is not
always a sign of an error, however; it is possible for multiple objects
in a COMMON block to all be equivalenced to distinct offsets in another
object in a way that is consistent. So refine the check.

Diff Detail

Event Timeline

klausler created this revision.Sep 22 2022, 3:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 3:01 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Sep 22 2022, 3:01 PM
PeteSteinfeld accepted this revision.Sep 22 2022, 7:38 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Sep 22 2022, 7:38 PM
This revision was automatically updated to reflect the committed changes.