This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/47931] missing -Waddress warning for comparison with NULL


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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]