http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57176
Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler at | |googlemail dot com --- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2013-05-06 12:23:02 UTC --- Unless I'm misunderstanding your suggestion I think that a compiler is not allowed to apply copy-elision here, because that case was explicitly excluded from 12.8 p31 by http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1148