[flang-commits] [PATCH] D122242: [flang] UBOUND() edge case: empty dimension

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Mar 22 11:06:38 PDT 2022


klausler added inline comments.


================
Comment at: flang/lib/Evaluate/shape.cpp:584
+  if (const auto *details{symbol.detailsIf<semantics::ObjectEntityDetails>()}) {
+    int j{0};
+    for (const auto &shapeSpec : details->shape()) {
----------------
I think that I removed the loop from what became GetLBOUND; if so, perhaps you can do so here too.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122242/new/

https://reviews.llvm.org/D122242



More information about the flang-commits mailing list