c++/9440: [3.4 regression] error message about "non-lvalue in unary '&'" when using ?: operator
Andrew Pollard
Andrew.Pollard@brooks-pri.com
Sun Jan 26 09:00:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list