This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61213] [4.7/4.8/4.9/4.10 Regression] std::forward_as_tuple and std::tuple<T&&> and any rvalue loose data
- 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: Sat, 17 May 2014 14:53:51 +0000
- Subject: [Bug c++/61213] [4.7/4.8/4.9/4.10 Regression] std::forward_as_tuple and std::tuple<T&&> and any rvalue loose data
- Auto-submitted: auto-generated
- References: <bug-61213-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61213
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #3)
> Are you sure the code is valid? It doesn't seem so to me.
Good point, the Widget temporary goes out of scope at the end of the expression
and the tuple holds a dangling reference.