This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9440: [3.4 regression] error message about "non-lvalue inunary '&'" when using ?: operator
- From: Andrew Pollard <Andrew dot Pollard at brooks-pri dot com>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 25 Jan 2003 18:56:00 -0000
- Subject: Re: c++/9440: [3.4 regression] error message about "non-lvalue inunary '&'" when using ?: operator
- Reply-to: Andrew Pollard <Andrew dot Pollard at brooks-pri dot com>
The following reply was made to PR c++/9440; it has been noted by GNATS.
From: Andrew Pollard <Andrew.Pollard@brooks-pri.com>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org
Cc:
Subject: Re: c++/9440: [3.4 regression] error message about "non-lvalue in
unary '&'" when using ?: operator
Date: Sat, 25 Jan 2003 18:50:39 +0000
Here's a simplified test case...
struct A {
explicit A(int = 0);
operator int() const;
};
A
bar(bool b, const A& a)
{
return (b ? A() : a);
}
Andrew.