Title
Temporary initialization for reference binding in list-initialization
Status
cd3
Section
9.4.5 [dcl.init.list]
Submitter
Steve Adamczyk

Created on 2012-04-12.00:00:00 last changed 131 months ago

Messages

Date: 2013-04-15.00:00:00

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

Date: 2012-12-15.00:00:00

Proposed resolution (December, 2012):

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

  • ...

  • Otherwise, if T is a reference type, a prvalue temporary of the type referenced by T is list-initialized copy-list-initialized or direct-list-initialized, depending on the kind of initialization for the reference, and the reference is bound to that temporary. [Note: As usual...

  • ...

Date: 2012-04-12.00:00:00

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.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: drwp -> cd3
2013-10-14 00:00:00adminsetstatus: dr -> drwp
2013-05-03 00:00:00adminsetmessages: + msg4410
2013-05-03 00:00:00adminsetstatus: tentatively ready -> dr
2013-01-14 00:00:00adminsetmessages: + msg4197
2013-01-14 00:00:00adminsetstatus: drafting -> tentatively ready
2012-11-03 00:00:00adminsetstatus: open -> drafting
2012-04-12 00:00:00admincreate