https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119545
Bug ID: 119545 Summary: tuple::operator==()'s help lambda does not specify return type as bool Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- #include <tuple> struct Boolean { Boolean(Boolean&&) = delete; operator bool() const; }; struct Object { const Boolean& operator==(const Object&) const; }; int main() { std::tuple<Object> t; return t == t; } https://godbolt.org/z/xEd8j38PP