From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17571 invoked by alias); 27 Sep 2004 12:10:05 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 17562 invoked from network); 27 Sep 2004 12:10:01 -0000 Received: from unknown (HELO mail.uni-magdeburg.de) (141.44.1.10) by sourceware.org with SMTP; 27 Sep 2004 12:10:01 -0000 Received: from sunny.urz.uni-magdeburg.de ([141.44.8.7]) by mail.uni-magdeburg.de with esmtp (EXIM Version 4.41) for id 1CBuKL-00037j-AO; Mon, 27 Sep 2004 14:10:00 +0200 Received: from connect3.urz.uni-magdeburg.de (IDENT:pD9DWoTGNfRb5GSOh6Kyi/2/LBlH9aZA@connect3.URZ.Uni-Magdeburg.DE [141.44.11.4]) by sunny.urz.uni-magdeburg.de (8.12.10/8.12.10) with ESMTP id i8RC9WcZ028992 for ; Mon, 27 Sep 2004 14:09:32 +0200 Received: (from bley@localhost) by connect3.urz.uni-magdeburg.de (8.11.6/8.11.6) id i8RC9Wp03507 for gcc-help@gcc.gnu.org; Mon, 27 Sep 2004 14:09:32 +0200 Date: Mon, 27 Sep 2004 12:10:00 -0000 From: Claudio Bley To: gcc-help@gcc.gnu.org Subject: Re: problem with C++ keyword true Message-ID: <20040927120932.GA3013@connect3.urz.uni-magdeburg.de> Mail-Followup-To: Claudio Bley , gcc-help@gcc.gnu.org References: <002c01c4a47f$cc3713e0$03010a0a@asus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002c01c4a47f$cc3713e0$03010a0a@asus> User-Agent: Mutt/1.4.2.1i X-Spam-Score: -4.9 (----) X-Spam-Report: ---- Start SpamAssassin results -4.9 points, 5.0 required; -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] ---- End of SpamAssassin results X-Scan-Signature: 7ef6d24607a96b3e0200a04696431edf X-SW-Source: 2004-09/txt/msg00298.txt.bz2 On Mon, Sep 27, 2004 at 06:50:25AM -0400, Steve Bliss wrote: > I'm using avr-gcc version 3.4.1 to compile C++. > > Here's the problem: > > bool george = true; > > if(george == true) > { > // never gets here > } > else > { > // always gets here > } This works for me (tm). [GCC i386 3.4.1] > In other words, the expression (george == true) is always false. Isn't this > a compiler bug? If that is so, yes this is a bug. You should probably get in touch with the avr-gcc people on this (http://www.avr1.org/mailman/listinfo/avr-gcc-list/) mailing list before filing a bug report here (http://gcc.gnu.org/bugzilla/). -- Claudio