[flang-commits] [PATCH] D156756: [flang] Correct handling of non-default lower bounds in ASSOCIATE with named constants

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Jul 31 16:12:39 PDT 2023


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

Work through several issues with LBOUND() and UBOUND() of ASSOCIATE 
construct entities that have been associated with named constants or
subobjects of named constants that are sporting non-default lower bounds.
Sometimes the non-default lower bounds matter, sometimes they don't.
Add a fairly exhaustive test to work through the possibilities.


https://reviews.llvm.org/D156756

Files:
  flang/include/flang/Evaluate/constant.h
  flang/lib/Evaluate/constant.cpp
  flang/lib/Evaluate/fold-implementation.h
  flang/lib/Evaluate/fold-integer.cpp
  flang/lib/Evaluate/formatting.cpp
  flang/lib/Evaluate/shape.cpp
  flang/lib/Semantics/expression.cpp
  flang/lib/Semantics/resolve-names.cpp
  flang/test/Lower/HLFIR/constant.f90
  flang/test/Semantics/associate02.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156756.545851.patch
Type: text/x-patch
Size: 17188 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230731/6a8553c6/attachment-0001.bin>


More information about the flang-commits mailing list