[flang-commits] [flang] [flang][OpenMP][Semantics] improve semantic checks for array sections (PR #132230)
Mats Petersson via flang-commits
flang-commits at lists.llvm.org
Thu Mar 20 08:24:10 PDT 2025
================
@@ -5304,27 +5304,40 @@ void OmpStructureChecker::CheckArraySection(
if (const auto *triplet{
std::get_if<parser::SubscriptTriplet>(&subscript.u)}) {
if (std::get<0>(triplet->t) && std::get<1>(triplet->t)) {
+ std::optional<int64_t> strideVal{std::nullopt};
+ if (std::get<2>(triplet->t)) {
----------------
Leporacanthicus wrote:
It feels like this could be simplified, and not do multiple get<2> and if?
https://github.com/llvm/llvm-project/pull/132230
More information about the flang-commits
mailing list