https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96816
--- Comment #4 from Jonathan Wakely ---
(In reply to Jean-Michaël Celerier from comment #0)
> g++ does not, but I guess this still warrants checking ?
N.B. GCC does give an error if you compile with -Wpedantic -std=c++20
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96816
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96816
--- Comment #2 from Jean-Michaël Celerier ---
I'd wager this is a result of C++20 operator<=> changes and operator==
synthesis.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96816
--- Comment #1 from Jean-Michaël Celerier ---
gcc.godbolt.org link for easy repro: https://gcc.godbolt.org/z/WYbzfT