This is an archive of the discontinued LLVM Phabricator instance.

[flang] Allow extension cases of EQUIVALENCE with optional warnings
ClosedPublic

Authored by klausler on Feb 15 2022, 8:24 AM.

Details

Summary

EQUIVALENCE storage association of objects whose types are not
both default-kind numeric storage sequences, or not both default-kind
character storage sequences, are not standard conformant.
However, most Fortran compilers admit such usage, with warnings
in strict conformance mode. This patch allos EQUIVALENCE of objects
that have sequence types that are either identical, both numeric
sequences (of default kind or not), or both character sequences.
Non-sequence types, and sequences types that are not homogeneously
numeric or character, remain errors.

Diff Detail

Event Timeline

klausler created this revision.Feb 15 2022, 8:24 AM
klausler requested review of this revision.Feb 15 2022, 8:24 AM
mleair accepted this revision.Feb 15 2022, 9:18 AM
This revision is now accepted and ready to land.Feb 15 2022, 9:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 15 2022, 10:21 AM