[Bug c++/31755] Clarify NULL pointer conversion to other types in initialiser

redi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Dec 8 23:29:00 GMT 2009



------- Comment #1 from redi at gcc dot gnu dot org  2009-12-08 23:29 -------
(In reply to comment #0)
> Could the warning message below be revised to include a warning that NULL will
> evaluate to false or zero?

What else would it evaluate to?

N.B. with recent versions of GCC -Wconversion is needed and the conversion to
bool no longer warns


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31755



More information about the Gcc-bugs mailing list