This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/47931] missing -Waddress warning for comparison with NULL
- From: "clyon at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 13 Jan 2017 14:25:09 +0000
- Subject: [Bug c/47931] missing -Waddress warning for comparison with NULL
- Auto-submitted: auto-generated
- References: <bug-47931-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47931
Christophe Lyon <clyon at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clyon at gcc dot gnu.org
--- Comment #7 from Christophe Lyon <clyon at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #5)
> Author: msebor
> Date: Wed Jan 11 18:33:13 2017
> New Revision: 244331
>
> URL: https://gcc.gnu.org/viewcvs?rev=244331&root=gcc&view=rev
> Log:
> PR c/47931 - missing -Waddress warning for comparison with NULL
>
> gcc/testsuite/ChangeLog:
> * c-c++-common/Waddress-2.c: New test.
>
>
> Added:
> trunk/gcc/testsuite/c-c++-common/Waddress-2.c
> Modified:
> trunk/gcc/testsuite/ChangeLog
Hi Martin,
I've noticed that this new test fails on arm and aarch64 targets:
FAIL:
c-c++-common/Waddress-2.c -std=gnu++11 (test for excess errors)
c-c++-common/Waddress-2.c -std=gnu++14 (test for excess errors)
c-c++-common/Waddress-2.c -std=gnu++98 (test for excess errors)