[flang-commits] [flang] [llvm] [flang][OpenMP] Parsing support for iterator modifiers in FROM and TO (PR #114593)

LLVM Continuous Integration via flang-commits flang-commits at lists.llvm.org
Mon Nov 4 08:57:52 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ppc64le-flang-rhel-clang` running on `ppc64le-flang-rhel-test` while building `flang,llvm` at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/157/builds/11788

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (build-unified-tree) failure: build (failure)
...
56.958 [100/85/6439] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/CompilerInvocation.cpp.o
57.438 [100/84/6440] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/canonicalize-omp.cpp.o
65.707 [100/83/6441] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/expr-parsers.cpp.o
72.934 [100/82/6442] Building CXX object tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/Runtime.cpp.o
72.977 [100/81/6443] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/check-namelist.cpp.o
73.717 [100/80/6444] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/pointer-assignment.cpp.o
81.967 [100/79/6445] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/characteristics.cpp.o
86.727 [100/78/6446] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/check-if-stmt.cpp.o
88.938 [100/77/6447] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/check-purity.cpp.o
93.674 [100/76/6448] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/check-omp-structure.cpp.o
FAILED: tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/check-omp-structure.cpp.o 
ccache /home/buildbots/llvm-external-buildbots/clang.16.0.1/bin/clang++ -DFLANG_INCLUDE_TESTS=1 -DFLANG_LITTLE_ENDIAN=1 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/tools/flang/lib/Semantics -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/tools/flang/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/llvm/include -isystem /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/llvm/../mlir/include -isystem /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/tools/mlir/include -isystem /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/tools/clang/include -isystem /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/llvm/../clang/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion           -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/check-omp-structure.cpp.o -MF tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/check-omp-structure.cpp.o.d -o tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/check-omp-structure.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:286:27: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
    return common::visit([this](auto &&s) { return Visit(s); }, x.u);
                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:314:66: note: in instantiation of function template specialization 'Fortran::semantics::(anonymous namespace)::ContiguousHelper::Visit<Fortran::evaluate::SomeType>' requested here
                               return ContiguousHelper{context_}.Visit(
                                                                 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:286:27: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
    return common::visit([this](auto &&s) { return Visit(s); }, x.u);
                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:286:52: note: in instantiation of function template specialization 'Fortran::semantics::(anonymous namespace)::ContiguousHelper::Visit<Fortran::evaluate::SomeKind<Fortran::common::TypeCategory::Integer>>' requested here
    return common::visit([this](auto &&s) { return Visit(s); }, x.u);
                                                   ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/include/flang/Common/visit.h:61:14: note: in instantiation of function template specialization 'Fortran::common::log2visit::Log2VisitHelper<0UL, 4UL, std::optional<bool>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:286:26), const std::variant<Fortran::evaluate::value::Integer<128>, Fortran::evaluate::NullPointer, Fortran::evaluate::ProcedureDesignator, Fortran::evaluate::ProcedureRef, Fortran::evaluate::Expr<SomeInteger>, Fortran::evaluate::Expr<SomeReal>, Fortran::evaluate::Expr<SomeComplex>, Fortran::evaluate::Expr<SomeCharacter>, Fortran::evaluate::Expr<SomeLogical>, Fortran::evaluate::Expr<SomeDerived>> &>' requested here
      return Log2VisitHelper<LOW, mid, RESULT>(
             ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/include/flang/Common/visit.h:78:12: note: in instantiation of function template specialization 'Fortran::common::log2visit::Log2VisitHelper<0UL, 9UL, std::optional<bool>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:286:26), const std::variant<Fortran::evaluate::value::Integer<128>, Fortran::evaluate::NullPointer, Fortran::evaluate::ProcedureDesignator, Fortran::evaluate::ProcedureRef, Fortran::evaluate::Expr<SomeInteger>, Fortran::evaluate::Expr<SomeReal>, Fortran::evaluate::Expr<SomeComplex>, Fortran::evaluate::Expr<SomeCharacter>, Fortran::evaluate::Expr<SomeLogical>, Fortran::evaluate::Expr<SomeDerived>> &>' requested here
    return Log2VisitHelper<0, high, Result>(std::forward<VISITOR>(visitor),
           ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:286:20: note: in instantiation of function template specialization 'Fortran::common::log2visit::visit<(lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:286:26), const std::variant<Fortran::evaluate::value::Integer<128>, Fortran::evaluate::NullPointer, Fortran::evaluate::ProcedureDesignator, Fortran::evaluate::ProcedureRef, Fortran::evaluate::Expr<SomeInteger>, Fortran::evaluate::Expr<SomeReal>, Fortran::evaluate::Expr<SomeComplex>, Fortran::evaluate::Expr<SomeCharacter>, Fortran::evaluate::Expr<SomeLogical>, Fortran::evaluate::Expr<SomeDerived>> &>' requested here
    return common::visit([this](auto &&s) { return Visit(s); }, x.u);
                   ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:314:66: note: in instantiation of function template specialization 'Fortran::semantics::(anonymous namespace)::ContiguousHelper::Visit<Fortran::evaluate::SomeType>' requested here
                               return ContiguousHelper{context_}.Visit(
                                                                 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:286:27: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
    return common::visit([this](auto &&s) { return Visit(s); }, x.u);
                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:286:52: note: in instantiation of function template specialization 'Fortran::semantics::(anonymous namespace)::ContiguousHelper::Visit<Fortran::evaluate::Type<Fortran::common::TypeCategory::Integer, 1>>' requested here
    return common::visit([this](auto &&s) { return Visit(s); }, x.u);
                                                   ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:286:52: note: in instantiation of function template specialization 'Fortran::semantics::(anonymous namespace)::ContiguousHelper::Visit<Fortran::evaluate::SomeKind<Fortran::common::TypeCategory::Integer>>' requested here
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/include/flang/Common/visit.h:61:14: note: in instantiation of function template specialization 'Fortran::common::log2visit::Log2VisitHelper<0UL, 4UL, std::optional<bool>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:286:26), const std::variant<Fortran::evaluate::value::Integer<128>, Fortran::evaluate::NullPointer, Fortran::evaluate::ProcedureDesignator, Fortran::evaluate::ProcedureRef, Fortran::evaluate::Expr<SomeInteger>, Fortran::evaluate::Expr<SomeReal>, Fortran::evaluate::Expr<SomeComplex>, Fortran::evaluate::Expr<SomeCharacter>, Fortran::evaluate::Expr<SomeLogical>, Fortran::evaluate::Expr<SomeDerived>> &>' requested here
      return Log2VisitHelper<LOW, mid, RESULT>(
             ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/include/flang/Common/visit.h:78:12: note: in instantiation of function template specialization 'Fortran::common::log2visit::Log2VisitHelper<0UL, 9UL, std::optional<bool>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/lib/Semantics/check-omp-structure.cpp:286:26), const std::variant<Fortran::evaluate::value::Integer<128>, Fortran::evaluate::NullPointer, Fortran::evaluate::ProcedureDesignator, Fortran::evaluate::ProcedureRef, Fortran::evaluate::Expr<SomeInteger>, Fortran::evaluate::Expr<SomeReal>, Fortran::evaluate::Expr<SomeComplex>, Fortran::evaluate::Expr<SomeCharacter>, Fortran::evaluate::Expr<SomeLogical>, Fortran::evaluate::Expr<SomeDerived>> &>' requested here
    return Log2VisitHelper<0, high, Result>(std::forward<VISITOR>(visitor),
           ^

```

</details>

https://github.com/llvm/llvm-project/pull/114593


More information about the flang-commits mailing list