https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105200
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The reason why g++ selects the built-in https://eel.is/c++draft/over.built#15 operator over the user supplied spaceship candidate is the https://eel.is/c++draft/over.match.best#general-2.8 rule, that candidate is rewritten while the builtin one is not. What rule do you think would make the rewritten candidate better than the built-in?