https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100903
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> --- http://eel.is/c++draft/cmp.categories.pre#example-1 lists nullptr_t as an example of a type that satisfies the requirements. GCC does not reject 0, just can emit a non-default warning about it if you enable that warning.