[flang-commits] [PATCH] D145114: [flang] Fix CONTIGUOUS attribute for construct entities

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Mar 1 13:06:34 PST 2023


klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

Currently, the selector of a construct entity (e.g., ASSOCIATE(x=>a(1:20)))
is inheriting the CONTIGUOUS attribute from its associated variable
even if it has subscripts that make it noncontiguous (a(1:20:2)).
Add construct entities to the dynamic contiguity predicate instead.


https://reviews.llvm.org/D145114

Files:
  flang/lib/Evaluate/check-expression.cpp
  flang/lib/Semantics/resolve-names.cpp
  flang/test/Evaluate/folding09.f90
  flang/test/Lower/HLFIR/associate-construct.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145114.501650.patch
Type: text/x-patch
Size: 6475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230301/eb08f1b6/attachment-0001.bin>


More information about the flang-commits mailing list