[all-commits] [llvm/llvm-project] 16c4b3: [flang] Correct handling of non-default lower boun...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Aug 1 09:54:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 16c4b320fe9544f9556c0d1d733f5c50f1ba0da3
      https://github.com/llvm/llvm-project/commit/16c4b320fe9544f9556c0d1d733f5c50f1ba0da3
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

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

  Log Message:
  -----------
  [flang] Correct handling of non-default lower bounds in ASSOCIATE with named constants

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.

Differential Revision: https://reviews.llvm.org/D156756




More information about the All-commits mailing list