This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51531] bool conversion to pointer should warn
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Dec 2011 19:53:02 +0000
- Subject: [Bug c++/51531] bool conversion to pointer should warn
- Auto-submitted: auto-generated
- References: <bug-51531-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51531
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-13 19:53:02 UTC ---
with 4.7
b.cc: In function 'int main()':
b.cc:4:14: warning: converting 'false' to pointer type 'int*'
[-Wconversion-null]