From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31734 invoked by alias); 16 Feb 2008 17:31:33 -0000 Received: (qmail 31726 invoked by uid 22791); 16 Feb 2008 17:31:33 -0000 X-Spam-Check-By: sourceware.org Received: from wf-out-1314.google.com (HELO wf-out-1314.google.com) (209.85.200.172) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 16 Feb 2008 17:31:16 +0000 Received: by wf-out-1314.google.com with SMTP id 28so216226wfc.14 for ; Sat, 16 Feb 2008 09:31:14 -0800 (PST) Received: by 10.142.232.20 with SMTP id e20mr3195148wfh.198.1203183074592; Sat, 16 Feb 2008 09:31:14 -0800 (PST) Received: by 10.143.171.4 with HTTP; Sat, 16 Feb 2008 09:31:14 -0800 (PST) Message-ID: <6c33472e0802160931h1c94a4f4q9b13b7a3af06ad93@mail.gmail.com> Date: Sat, 16 Feb 2008 17:42:00 -0000 From: "=?ISO-8859-1?Q?Manuel_L=F3pez-Ib=E1=F1ez?=" To: "Richard Guenther" Subject: Re: [RFC] PR34389 -Wconversion produces wrong warning Cc: "GCC Patches" In-Reply-To: <84fc9c000802160900h5660abd5n205da0e65ec3a50b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6c33472e0802160852x17360ea9sb8c0945b6039f872@mail.gmail.com> <84fc9c000802160900h5660abd5n205da0e65ec3a50b@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg00616.txt.bz2 On 16/02/2008, Richard Guenther wrote: > > The correct fix is to not fold expressions in the C frontend before doing > these kinds of warnings. > The fold is done by the last call to "convert" in build_binary_op in c-typeck.c And this is not just the C front end but also C++. So I don't see how folding can be prevented here. Cheers, Manuel.