This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: new C++ parser bug
- From: Craig Rodrigues <rodrigc at attbi dot com>
- To: Matt Austern <austern at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 15 Feb 2003 13:08:10 -0500
- Subject: Re: new C++ parser bug
- References: <C1B68BB0-3F92-11D7-B880-00039390D9E0@apple.com>
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