[Bug c++/49122] [C++0x] initializer_list is broken

potswa at mac dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 8 06:56:00 GMT 2013


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

David Krauss <potswa at mac dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |potswa at mac dot com

--- Comment #7 from David Krauss <potswa at mac dot com> 2013-03-08 06:56:00 UTC ---
I think this should be reopened. The return value object, which exists in the
calling scope, is initialized from the braced-init-list. No copying occurs
beyond what is demonstrated in the example in [dcl.init.list]/6.

For more detail, see http://stackoverflow.com/q/15286450/153285 .



More information about the Gcc-bugs mailing list