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


1494. Temporary initialization for reference binding in list-initialization

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

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

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

Otherwise, if T is a reference type, a prvalue temporary of the type referenced by T is list-initialized, and the reference is bound to that temporary.

This does not say whether the initialization of the temporary is direct-list-initialization, copy-list-initialization, or the same kind of list-initialization as the top-level initialization.

Proposed resolution (December, 2012):

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