[Bug c++/105200] user-defined operator <=> for enumerated types is ignored

2022-04-08 Thread falbrechtskirchinger at gmail dot com via Gcc-bugs
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

[Bug c++/105202] ICE: defaulted comparison operators for enumerated types segfault

2022-04-08 Thread falbrechtskirchinger at gmail dot com via Gcc-bugs
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.

[Bug c++/105202] New: ICE: defaulted comparison operators for enumerated types segfault

2022-04-08 Thread falbrechtskirchinger at gmail dot com via Gcc-bugs
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

[Bug c++/105200] New: user-defined operator <=> for enumerated types is ignored

2022-04-08 Thread falbrechtskirchinger at gmail dot com via Gcc-bugs
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