[Bug c++/93675] New: Starship operator on a hidden friend operator does not work
mateusz.pusz at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Feb 11 12:45:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93675
Bug ID: 93675
Summary: Starship operator on a hidden friend operator does not
work
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mateusz.pusz at gmail dot com
Target Milestone: ---
The following code does not compile:
```
struct B {
int b;
friend constexpr auto operator<=>(const B&, const B&) = default;
};
void foo()
{
B b1, b2;
b1 == b2;
}
```
https://godbolt.org/z/JBUqG8
More information about the Gcc-bugs
mailing list