[Bug c++/43906] missing warnings the comparison between an address with a null pointer constant

paolo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Aug 6 19:09:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43906

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Aug  6 19:09:08 2014
New Revision: 213682

URL: https://gcc.gnu.org/viewcvs?rev=213682&root=gcc&view=rev
Log:
/cp
2014-08-06  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/43906
    * typeck.c (cp_build_binary_op): Extend to more cases the
    -Waddress warning.

/testsuite
2014-08-06  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/43906
    * g++.dg/warn/Waddress-1.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/warn/Waddress-1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list