This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51531] bool conversion to pointer should warn


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]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]