https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101442
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.6.4
Known to fail| |4.7.4
Summary|Destructor not called for a |[9/10/11/12 Regression]
|temporary object, if it's |Destructor not called for a
|bound to a ref member of an |temporary object, if it's
|object subject to NRVO |bound to a ref member of an
| |object subject to NRVO
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Works correctly in GCC 4.6.4 too. I'll bisect.