https://bugs.llvm.org/show_bug.cgi?id=41989
Bug ID: 41989
Summary: C++2a: unable to default the three-way comparison
operator
Product: clang
Version: 8.0
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++2a
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
The following code, compiled with clang-8 -std=c++2a, fails with:
error: only special member functions may be defaulted
#include <compare>
struct type
{
friend constexpr std::strong_equality operator<=>(const type&, const type&)
noexcept = default;
};
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs