https://bugs.llvm.org/show_bug.cgi?id=41990

            Bug ID: 41990
           Summary: c++2a: unable to resolve traditional comparison
                    operators from three-way comparison operator
           Product: clang
           Version: 8.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++2a
          Assignee: unassignedclangb...@nondot.org
          Reporter: developm...@jordi.vilar.cat
                CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
                    llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk

The following code, compiled with clang-8 -std=c++2a, fails with:
  error: invalid operands to binary expression ('type' and 'type')

#include <compare>

struct type
{
    friend constexpr std::strong_equality operator<=>(const type&, const type&)
noexcept { return std::strong_equality::equal; };
};

constexpr auto test = type{} == type{};

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to