Title
Full expressions and aggregate initialization
Status
nad
Section
9.4.5 [dcl.init.list]
Submitter
Jason Merrill

Created on 2011-12-03.00:00:00 last changed 147 months ago

Messages

Date: 2012-10-15.00:00:00

Rationale (October, 2012):

The rules are acceptable as written; declaration and expression contexts are different.

Date: 2022-11-20.07:54:16

Dealing with aggregate-initialized temporaries has been a bit of a headache because unlike aggregate initialization of variables, each element initialization is not a full-expression, so various things behave differently because they are in the context of initializing a temporary.

This can either be inconsistent with aggregate initialization of a variable (in which each element is a full-expression) or inconsistent with list-initialization via constructor (in which each element is a subexpression).

History
Date User Action Args
2012-11-03 00:00:00adminsetmessages: + msg4178
2012-11-03 00:00:00adminsetstatus: open -> nad
2011-12-03 00:00:00admincreate