blob: cf4644f53c9a2388486a857cfd8e94ebe6e1ffd7 [file] [log] [blame]
// { dg-do compile { target c++17 } }
// PR libstdc++/95833 - Incorrect static_assert in std::reduce overload
#include <numeric>
struct A { };
struct B { };
struct binop
{
template<typename T, typename U>
A operator()(T&&, U&&) const { return A{}; }
};
B b;
A a = std::reduce(&b, &b + 1, A{}, binop{});