From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4501 invoked by alias); 6 Aug 2014 19:09:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 4446 invoked by uid 55); 6 Aug 2014 19:09:45 -0000 From: "paolo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/43906] missing warnings the comparison between an address with a null pointer constant Date: Wed, 06 Aug 2014 19:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.6.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg00415.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43906 --- Comment #2 from 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 PR c++/43906 * typeck.c (cp_build_binary_op): Extend to more cases the -Waddress warning. /testsuite 2014-08-06 Paolo Carlini 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