help-gplusplus
[Top][All Lists]
Advanced

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

Re: g++ 3.3.2 '?:' operator compile error


From: Paul Pluzhnikov
Subject: Re: g++ 3.3.2 '?:' operator compile error
Date: 30 Apr 2004 20:22:45 -0700
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

Kyuso Cahi <kyuso@softhome.net> writes:

> ---after g++ 3.3.2 compiling--
> /tmp/ccCrBdd3.o(.text+0x33): In function `main':
> xxx.cc:10: undefined reference to `A::YES'
> /tmp/ccCrBdd3.o(.text+0x3d):xxx.cc:10: undefined reference to `A::NO'
> 
> It seems that some class members cannot be referenced inside the ?:
> operator. You can see that line 9 doesn't have compile error for A::YES nor
> A::NO. I also found that compiling with -O2 causes error only on A::YES but
> not on A::NO.
> 
> Is this a bug? 

Quite likely: the bug appears in g++-3.2 and 3.3.2, but not in
2.95.3, nor in 3.4.0.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]