http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57207



vlukas at gmx dot de changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

                 CC|                            |vlukas at gmx dot de



--- Comment #1 from vlukas at gmx dot de 2013-05-08 11:15:48 UTC ---

I think GCC is correct. In the C++-draft N3290, this is prescribed by 12.2,

paragraph 5, the second item: A temporary which is bound to a reference

parameter of a function is destroyed at the end of the full expression.

Reply via email to