This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50056] Binding a temporary object to a reference
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 16 Aug 2011 23:43:19 +0000
- Subject: [Bug c++/50056] Binding a temporary object to a reference
- Auto-submitted: auto-generated
- References: <bug-50056-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50056
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jason at gcc dot gnu.org
Resolution| |INVALID
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-16 23:43:19 UTC ---
clang 2.8 and EDG 4.3 behave the same way as G++, so I don't think this is a
bug in GCC; feel free to raise it as a language issue, though.
This section could use to be reformulated in terms of class prvalues. S() is a
class prvalue, but static_cast<const S&>(S()) is an lvalue.