From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17224 invoked by alias); 19 Feb 2007 20:50:50 -0000 Received: (qmail 16054 invoked by uid 48); 19 Feb 2007 20:50:29 -0000 Date: Mon, 19 Feb 2007 20:50:00 -0000 Message-ID: <20070219205029.16052.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/30860] Should warn about boolean constant false used in pointer context In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "manu at gcc dot gnu dot org" 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 X-SW-Source: 2007-02/txt/msg02248.txt.bz2 ------- Comment #8 from manu at gcc dot gnu dot org 2007-02-19 20:50 ------- (In reply to comment #6) > there is an implicit value conversion, boolean "false" to address "0". I think > that is the definition of -Wconversion, no? > > anyway, I'll work on a patch. > Take a look at http://gcc.gnu.org/ml/gcc-patches/2007-02/txt00054.txt and particularly at cp/call.c (convert_like_real). I think the warning should go there with the other NULL warnings. Cheers, Manuel. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30860