This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21386] Inconsistent diagnostics for taking address of rvalue
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Feb 2012 13:33:59 +0000
- Subject: [Bug c++/21386] Inconsistent diagnostics for taking address of rvalue
- Auto-submitted: auto-generated
- References: <bug-21386-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21386
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.0
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-02 13:33:59 UTC ---
4.6 gives:
x.cc: In function 'int main()':
x.cc:6:19: error: lvalue required as unary '&' operand
x.cc:7:17: error: taking address of temporary [-fpermissive]