[Bug libstdc++/119545] New: tuple::operator==()'s help lambda does not specify return type as bool

hewillk at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Mar 30 17:19:30 GMT 2025


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


More information about the Gcc-bugs mailing list