[Bug c++/35669] NULL (__null) not considered different from 0 with C++
jwakely dot gcc at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 22 10:36:00 GMT 2009
------- Comment #15 from jwakely dot gcc at gmail dot com 2009-12-22 10:36 -------
(In reply to comment #14)
> > so [implicit] conversion from NULL to int is OK.
>
> That's true where NULL is defined as 0 (or eg 0L), but that's not the only
> permitted definition of NULL.
Nice selective quoting, you missed the part where I said "but 0 is still a
valid definition of NULL"
You claimed in comment 12 that the compiler will be *required* to reject
conversions from NULL to int, which is patently not true if 0 or 0L is a valid
definition of NULL.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35669
More information about the Gcc-bugs
mailing list