[flang-commits] [PATCH] D119848: [flang] Allow extension cases of EQUIVALENCE with optional warnings

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Feb 15 08:24:54 PST 2022


klausler created this revision.
klausler added a reviewer: mleair.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
klausler requested review of this revision.

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.


https://reviews.llvm.org/D119848

Files:
  flang/docs/Extensions.md
  flang/include/flang/Common/Fortran-features.h
  flang/include/flang/Evaluate/tools.h
  flang/lib/Evaluate/tools.cpp
  flang/lib/Parser/Fortran-parsers.cpp
  flang/lib/Parser/basic-parsers.h
  flang/lib/Semantics/resolve-names-utils.cpp
  flang/lib/Semantics/resolve-names-utils.h
  flang/test/Semantics/equivalence01.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119848.408884.patch
Type: text/x-patch
Size: 20091 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220215/009916db/attachment-0001.bin>


More information about the flang-commits mailing list