This is the mail archive of the gcc-prs@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: c++/9440: [3.4 regression] error message about "non-lvalue inunary '&'" when using ?: operator


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.
 


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