new C++ parser bug

Craig Rodrigues rodrigc@attbi.com
Sat Feb 15 20:47:00 GMT 2003


On Thu, Feb 13, 2003 at 12:35:57PM -0800, Matt Austern wrote:
>     void foo(int x, const Str& str)
>     {
>       x ? str : str.frob();
>     }
> 
> The error message I get is:
>     foo.ii: In function `void foo(int, const Str&)':
>     foo.ii:10: error: non-lvalue in unary `&'
> 
> So, before I spend time trying to understand how to fix this...
> Is this  a known bug?

See:

http://gcc.gnu.org/ml/gcc/2003-02/msg00426.html

for when this started happening on mainline.

-- 
Craig Rodrigues        
http://home.attbi.com/~rodrigc
rodrigc@attbi.com



More information about the Gcc mailing list