This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/16351] New: NULL dereference warnings
- From: "phython at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jul 2004 17:17:20 -0000
- Subject: [Bug other/16351] New: NULL dereference warnings
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
It'd be really nice if gcc warned about NULL pointer dereferences.
e.g.
if (foo == NULL && foo->bar)
See the attached test case for more examples.
--
Summary: NULL dereference warnings
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: phython at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16351