https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114571
--- Comment #6 from Alejandro Colomar <alx at kernel dot org> --- (In reply to Pierre Ossman from comment #5) > That may be, but -Wzero-as-null-pointer-constant is documented as > facilitating conversion to "nullptr", That documentation should be fixed to remove that sentence. > which means it definitely should be > complaining about NULL, since that might not be the same thing. You could move that sentence to a hypothetical -Wnull-as-null-pointer-constant. Otherwise, how should I transition from 0 to NULL? The name for the diagnostic is already taken. > Compatibility with clang would also make everyone's lives easier. Clang made a bad decision. They should probably fix it.