------- Comment #2 from redi at gcc dot gnu dot org 2010-06-03 22:42 -------
Yes, this is eligible for copy elision, see [class.copy]
when a temporary class object that has not been bound to a reference (12.2)
would be copied/moved
to a class object with the same cv-unqualified type, the copy/move
operation can be omitted by
constructing the temporary object directly into the target of the omitted
copy/move
--
redi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44409