Re: problem with C++ keyword true

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux