[Bug c/81453] relational expression involving null pointer not diagnosed with -Wall
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81453 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #4 from Martin Sebor --- I'm not sure pr103945 is a duplicate of this feature request: this one is about relational expressions involving a null pointer, while pr103945 is about relational expressions involving function pointers. Both sets of expressions are invalid, but both are also quite different. That said, as I mentioned in bug 103945 comment 4: the patch I submitted in October 2020 detects invalid relational comparisons of unrelated pointers of all kinds (https://gcc.gnu.org/pipermail/gcc-patches/2020-November/558775.html; the patch review was never finished). I'd expect it to also diagnose relational expressions involving null pointers (because they're treated as distinct by the pointer-query infrastructure) but I don't see any tests for it,
[Bug c/81453] relational expression involving null pointer not diagnosed with -Wall
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81453 Eric Gallager changed: What|Removed |Added CC||dcb314 at hotmail dot com --- Comment #3 from Eric Gallager --- *** Bug 103945 has been marked as a duplicate of this bug. ***
[Bug c/81453] relational expression involving null pointer not diagnosed with -Wall
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81453 --- Comment #2 from Eric Gallager --- The name -Wordered-pointer-comparison was suggested for this warning here: https://gcc.gnu.org/ml/gcc-patches/2007-01/msg00608.html
[Bug c/81453] relational expression involving null pointer not diagnosed with -Wall
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81453 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|mpolacek at gcc dot gnu.org|unassigned at gcc dot gnu.org
[Bug c/81453] relational expression involving null pointer not diagnosed with -Wall
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81453 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2017-07-26 CC||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Ever confirmed|0 |1
[Bug c/81453] relational expression involving null pointer not diagnosed with -Wall
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81453 Eric Gallager changed: What|Removed |Added CC||egall at gwmail dot gwu.edu --- Comment #1 from Eric Gallager --- Related: bug 7651