[llvm] [STLExtras] Introduce bind_{first, last}, [not_]equal_to (PR #175056)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 9 06:52:01 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 97553 tests passed
* 1866 tests skipped

All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.

<details>
<summary>unittests/ADT/CMakeFiles/ADTTests.dir/STLExtrasTest.cpp.o</summary>

```
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/STLExtrasTest.cpp.o
sccache /opt/llvm/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/unittests/ADT -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/ADT -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googlemock/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -UNDEBUG -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -Wno-suggest-override -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/STLExtrasTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/STLExtrasTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/STLExtrasTest.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/ADT/STLExtrasTest.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/ADT/STLExtrasTest.cpp:9:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:20:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ADL.h:12:
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2388:21: error: static assertion failed due to requirement '__declval_protector<std::equal_to<int> ()>::__stop': declval() must not be used!
2388 |       static_assert(__declval_protector<_Tp>::__stop,
|                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2164:26: note: in instantiation of function template specialization 'std::declval<std::equal_to<int> ()>' requested here
2164 |   return bind_front<std::declval<std::equal_to<T>()>>(Arg);
|                          ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/ADT/STLExtrasTest.cpp:9:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/Hashing.h:51:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/SwapByteOrder.h:17:
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:194:12: error: no matching function for call to 'invoke'
194 |     return std::invoke(Fn, std::forward<BindArgsT>(BindArgs)...,
|            ^~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/predefined_ops.h:395:17: note: in instantiation of function template specialization 'bind_front(const int &)::(anonymous class)::operator()<int &>' requested here
395 |         { return !bool(_M_pred(*__it)); }
|                        ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2072:8: note: in instantiation of function template specialization '__gnu_cxx::__ops::_Iter_negate<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>::operator()<__gnu_cxx::__normal_iterator<int *, std::vector<int>>>' requested here
2072 |           if (__pred(__first))
|               ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:112:19: note: in instantiation of function template specialization 'std::__find_if<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, __gnu_cxx::__ops::_Iter_negate<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>>' requested here
112 |       return std::__find_if(__first, __last,
|                   ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:519:19: note: in instantiation of function template specialization 'std::__find_if_not<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, __gnu_cxx::__ops::_Iter_pred<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>>' requested here
519 |       return std::__find_if_not(__first, __last,
|                   ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:459:29: note: in instantiation of function template specialization 'std::find_if_not<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>' requested here
459 |     { return __last == std::find_if_not(__first, __last, __pred); }
|                             ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1738:15: note: in instantiation of function template specialization 'std::all_of<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>' requested here
1738 |   return std::all_of(adl_begin(Range), adl_end(Range), P);
|               ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/ADT/STLExtrasTest.cpp:1060:15: note: in instantiation of function template specialization 'llvm::all_of<std::vector<int> &, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>' requested here
1060 |   EXPECT_TRUE(all_of(V, equal_to(1)));
|               ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include/gtest/gtest.h:1807:50: note: expanded from macro 'EXPECT_TRUE'
1807 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
|                                                  ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include/gtest/gtest.h:1792:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1792 |   GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
|                       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include/gtest/internal/gtest-internal.h:1493:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1493 |           ::testing::AssertionResult(expression))                     \
|                                      ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:110:5: note: candidate template ignored: substitution failure [with _Callable = auto (*)() noexcept -> decltype(__declval<std::equal_to<int> ()>(0)), _Args = <const int &, int &>]: no type named 'type' in 'std::invoke_result<std::equal_to<int> (&(*)() noexcept)(), const int &, int &>'
110 |     invoke(_Callable&& __fn, _Args&&... __args)
|     ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/ADT/STLExtrasTest.cpp:9:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:20:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ADL.h:12:
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2388:21: error: static assertion failed due to requirement '__declval_protector<std::not_equal_to<int> ()>::__stop': declval() must not be used!
2388 |       static_assert(__declval_protector<_Tp>::__stop,
|                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2172:26: note: in instantiation of function template specialization 'std::declval<std::not_equal_to<int> ()>' requested here
2172 |   return bind_front<std::declval<std::not_equal_to<T>()>>(Arg);
|                          ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/ADT/STLExtrasTest.cpp:9:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/Hashing.h:51:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/SwapByteOrder.h:17:
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:194:12: error: no matching function for call to 'invoke'
194 |     return std::invoke(Fn, std::forward<BindArgsT>(BindArgs)...,
|            ^~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/predefined_ops.h:395:17: note: in instantiation of function template specialization 'bind_front(const int &)::(anonymous class)::operator()<int &>' requested here
395 |         { return !bool(_M_pred(*__it)); }
|                        ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2072:8: note: in instantiation of function template specialization '__gnu_cxx::__ops::_Iter_negate<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>::operator()<__gnu_cxx::__normal_iterator<int *, std::vector<int>>>' requested here
2072 |           if (__pred(__first))
|               ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:112:19: note: in instantiation of function template specialization 'std::__find_if<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, __gnu_cxx::__ops::_Iter_negate<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>>' requested here
112 |       return std::__find_if(__first, __last,
|                   ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:519:19: note: in instantiation of function template specialization 'std::__find_if_not<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, __gnu_cxx::__ops::_Iter_pred<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>>' requested here
519 |       return std::__find_if_not(__first, __last,
|                   ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:459:29: note: in instantiation of function template specialization 'std::find_if_not<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>' requested here
459 |     { return __last == std::find_if_not(__first, __last, __pred); }
|                             ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1738:15: note: in instantiation of function template specialization 'std::all_of<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>' requested here
1738 |   return std::all_of(adl_begin(Range), adl_end(Range), P);
|               ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/ADT/STLExtrasTest.cpp:1061:15: note: in instantiation of function template specialization 'llvm::all_of<std::vector<int> &, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>' requested here
1061 |   EXPECT_TRUE(all_of(V, not_equal_to(1)));
|               ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include/gtest/gtest.h:1807:50: note: expanded from macro 'EXPECT_TRUE'
1807 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
|                                                  ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include/gtest/gtest.h:1792:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1792 |   GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
|                       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include/gtest/internal/gtest-internal.h:1493:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1493 |           ::testing::AssertionResult(expression))                     \
|                                      ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:110:5: note: candidate template ignored: substitution failure [with _Callable = auto (*)() noexcept -> decltype(__declval<std::not_equal_to<int> ()>(0)), _Args = <const int &, int &>]: no type named 'type' in 'std::invoke_result<std::not_equal_to<int> (&(*)() noexcept)(), const int &, int &>'
110 |     invoke(_Callable&& __fn, _Args&&... __args)
|     ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/ADT/STLExtrasTest.cpp:9:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:20:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ADL.h:13:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/iterator:66:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/streambuf_iterator.h:35:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/streambuf:43:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/ios_base.h:41:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/locale_classes.h:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/string:51:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:71:
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/predefined_ops.h:318:16: error: no matching function for call to object of type '(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)'
318 |         { return bool(_M_pred(*__it)); }
|                       ^~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2072:8: note: in instantiation of function template specialization '__gnu_cxx::__ops::_Iter_pred<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>::operator()<__gnu_cxx::__normal_iterator<int *, std::vector<int>>>' requested here
2072 |           if (__pred(__first))
|               ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2117:14: note: in instantiation of function template specialization 'std::__find_if<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, __gnu_cxx::__ops::_Iter_pred<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>>' requested here
2117 |       return __find_if(__first, __last, __pred,
|              ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:3923:19: note: in instantiation of function template specialization 'std::__find_if<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, __gnu_cxx::__ops::_Iter_pred<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>>' requested here
3923 |       return std::__find_if(__first, __last,
|                   ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:477:40: note: in instantiation of function template specialization 'std::find_if<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>' requested here
477 |     { return __last == _GLIBCXX_STD_A::find_if(__first, __last, __pred); }
|                                        ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1752:15: note: in instantiation of function template specialization 'std::none_of<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>' requested here
1752 |   return std::none_of(adl_begin(Range), adl_end(Range), P);
|               ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/ADT/STLExtrasTest.cpp:1071:15: note: in instantiation of function template specialization 'llvm::none_of<std::vector<int> &, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>' requested here
1071 |   EXPECT_TRUE(none_of(V, equal_to(2)));
|               ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include/gtest/gtest.h:1807:50: note: expanded from macro 'EXPECT_TRUE'
1807 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
|                                                  ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include/gtest/gtest.h:1792:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1792 |   GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
|                       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include/gtest/internal/gtest-internal.h:1493:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1493 |           ::testing::AssertionResult(expression))                     \
|                                      ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10: note: candidate template ignored: substitution failure [with CallArgs:auto = <int &>]
193 |   return [&BindArgs...](auto &&...CallArgs) {
|          ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/ADT/STLExtrasTest.cpp:9:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:20:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ADL.h:13:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/iterator:66:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/streambuf_iterator.h:35:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/streambuf:43:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/ios_base.h:41:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/locale_classes.h:40:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/string:51:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:71:
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/predefined_ops.h:318:16: error: no matching function for call to object of type '(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)'
318 |         { return bool(_M_pred(*__it)); }
|                       ^~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2072:8: note: in instantiation of function template specialization '__gnu_cxx::__ops::_Iter_pred<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>::operator()<__gnu_cxx::__normal_iterator<int *, std::vector<int>>>' requested here
2072 |           if (__pred(__first))
|               ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2117:14: note: in instantiation of function template specialization 'std::__find_if<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, __gnu_cxx::__ops::_Iter_pred<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>>' requested here
2117 |       return __find_if(__first, __last, __pred,
|              ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:3923:19: note: in instantiation of function template specialization 'std::__find_if<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, __gnu_cxx::__ops::_Iter_pred<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>>' requested here
3923 |       return std::__find_if(__first, __last,
|                   ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:477:40: note: in instantiation of function template specialization 'std::find_if<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>' requested here
477 |     { return __last == _GLIBCXX_STD_A::find_if(__first, __last, __pred); }
|                                        ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:496:20: note: in instantiation of function template specialization 'std::none_of<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>' requested here
496 |     { return !std::none_of(__first, __last, __pred); }
|                    ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1745:15: note: in instantiation of function template specialization 'std::any_of<__gnu_cxx::__normal_iterator<int *, std::vector<int>>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>' requested here
1745 |   return std::any_of(adl_begin(Range), adl_end(Range), P);
|               ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/ADT/STLExtrasTest.cpp:1077:15: note: in instantiation of function template specialization 'llvm::any_of<std::vector<int> &, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10)>' requested here
1077 |   EXPECT_TRUE(any_of(V, not_equal_to(2)));
|               ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include/gtest/gtest.h:1807:50: note: expanded from macro 'EXPECT_TRUE'
1807 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
|                                                  ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include/gtest/gtest.h:1792:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1792 |   GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
|                       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include/gtest/internal/gtest-internal.h:1493:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1493 |           ::testing::AssertionResult(expression))                     \
|                                      ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:193:10: note: candidate template ignored: substitution failure [with CallArgs:auto = <int &>]
193 |   return [&BindArgs...](auto &&...CallArgs) {
|          ^
6 errors generated.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-commits mailing list