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.

Reply via email to