[PATCH] D95449: [flang] Fix problems with constant arrays with lower bounds that are not 1
Tim Keith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 28 10:19:06 PST 2021
tskeith added inline comments.
================
Comment at: flang/test/Evaluate/folding16.f90:6
real, parameter :: b(-1:-1) = log(a)
+integer, parameter :: c(-1:1) = [33, 22, 11]
+integer, parameter :: d(1:3) = [33, 22, 11]
----------------
I think you should be able to add this line to check the lower bound of `c`:
`logical, parameter :: test_c = lbound(c, 1) == -1`
But when I tried that it failed. (It's possible I don't understand these folding tests.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95449/new/
https://reviews.llvm.org/D95449
More information about the llvm-commits
mailing list