[Bug c++/77513] -Wzero-as-null-pointer-constant vs 0, nullptr, NULL and __null
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 7 15:37:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77513
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to petschy from comment #0)
> For c++11 and later code, why is NULL defined as __null, rather than nullptr?
Because defining NULL as nullptr would violate the requirements of the
standard, which very intentionally says that NULL is an integral constant
expression, not nullptr.
More information about the Gcc-bugs
mailing list