This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/64767] Could GCC warn when a pointer is compared against '\0'?
- From: "ulfalizer at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 24 Jan 2015 15:39:59 +0000
- Subject: [Bug c++/64767] Could GCC warn when a pointer is compared against '\0'?
- Auto-submitted: auto-generated
- References: <bug-64767-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64767
--- Comment #3 from Ulf Magnusson <ulfalizer at gmail dot com> ---
clang also generates a warning for C programs with void *a = '\0' by the way,
so it seems to be able to look at the form of the integral constant there.