This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/77432] warn about null check after pointer dereference
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 31 Aug 2016 19:54:19 +0000
- Subject: [Bug middle-end/77432] warn about null check after pointer dereference
- Auto-submitted: auto-generated
- References: <bug-77432-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77432
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-08-31
Component|c++ |middle-end
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Hmm, there was a warning for this specific thing, I thought but I could be
wrong. Maybe it only happens with optimization.
Oh that is -Wnull-dereference which is slightly different, this case is when
eliminating the conditional due to dereferencing rather than having a path
which might deference a null pointer.