https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105200
--- Comment #3 from Florian Albrechtskirchinger ---
(In reply to Jakub Jelinek from comment #2)
> If one defines instead say bool operator<(const foo, const foo);
> then the built-in candidate isn't considered because of
> https://eel.is/c++draf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105202
--- Comment #2 from Florian Albrechtskirchinger ---
(In reply to Martin Liška from comment #1)
> Is the code invalid, right?
I'd say so, yes.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105202
Bug ID: 105202
Summary: ICE: defaulted comparison operators for enumerated
types segfault
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105200
Bug ID: 105200
Summary: user-defined operator <=> for enumerated types is
ignored
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Pri