[Bug c++/30860] Should warn about boolean constant false used in pointer context

gdr at cs dot tamu dot edu gcc-bugzilla@gcc.gnu.org
Mon Feb 19 19:48:00 GMT 2007



------- Comment #4 from gdr at cs dot tamu dot edu  2007-02-19 19:48 -------
Subject: Re:  Should warn about boolean constant false used in pointer context

"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| I don't see why we should warn about a very valid and well defined and will
| always work on every compiler.  You want to warn about a specific coding
style
| which I think is wrong in this case (and in the -Weffc++ case).

The code may be well-formed C++, but it certainly is a candidate for
either a conceptual error (or typo) or part of obfuscated code contest.  

-- Gaby


-- 


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



More information about the Gcc-bugs mailing list