From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24869 invoked by alias); 19 Aug 2008 23:54:42 -0000 Received: (qmail 24861 invoked by uid 22791); 19 Aug 2008 23:54:42 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 19 Aug 2008 23:54:07 +0000 Received: from spaceape9.eur.corp.google.com (spaceape9.eur.corp.google.com [172.28.16.143]) by smtp-out3.google.com with ESMTP id m7JNrutq002364; Wed, 20 Aug 2008 00:53:56 +0100 Received: from localhost.localdomain.google.com (dhcp-172-18-118-203.corp.google.com [172.18.118.203]) (authenticated bits=0) by spaceape9.eur.corp.google.com with ESMTP id m7JNrqgH000736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 19 Aug 2008 16:53:55 -0700 To: Richard Harvey Chapman Cc: gcc Subject: Re: regarding type promotion References: <48AA5377.9080001@redpinesignals.com> <1219162574.6008.7.camel@bob-desktop> <48AAF5B6.3030704@3gfp.com> <48AB4370.9020104@3gfp.com> From: Ian Lance Taylor Date: Wed, 20 Aug 2008 02:28:00 -0000 In-Reply-To: <48AB4370.9020104@3gfp.com> (Richard Harvey Chapman's message of "Tue\, 19 Aug 2008 18\:04\:32 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00187.txt.bz2 Richard Harvey Chapman writes: > Ian Lance Taylor wrote: >> That's why gcc warns about it, with -Wparentheses, which is part of >> -Wall. > Interesting. I've never noticed that. I guess it is because g++ > doesn't warn about it. Is this a bug in g++? It was a bug, yes. It was fixed in gcc 4.3. Ian