This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 110b. See for the official list.


1506. Value category of initializer_list object

Section: 9.4.5  [dcl.init.list]     Status: CD3     Submitter: Steve Adamczyk     Date: 2012-05-29

[Moved to DR at the April, 2013 meeting.]

One of the bullets in 9.4.5 [dcl.init.list] paragraph 3 says,

Otherwise, if T is a specialization of std::initializer_list<E>, an initializer_list object is constructed as described below and used to initialize the object according to the rules for initialization of an object from a class of the same type (9.4 [dcl.init]).

This does not, but should, say whether the initializer_list object is treated as an lvalue or prvalue for the purpose of the 9.4 [dcl.init] initialization.

Proposed resolution (October, 2012):

Change 9.4.5 [dcl.init.list] paragraph 3 as follows:

List-initialization of an object or reference of type T is defined as follows: