This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: new C++ parser bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]