|
92 | 92 | initializer list or an expression which generates a value that either is or can |
93 | 93 | be implicitly converted to an rvalue. Each assignment-expression is an object, |
94 | 94 | which may be a scalar or aggregate type. A \textit{flattened initializer |
95 | | -sequence} is constructed by a depth-first traversal over each |
96 | | -assignment-expression in an initializer-list and performing a depth-first |
97 | | -traversal accessing each subobject of the assignment-expression. |
| 95 | +sequence} is a sequence of expressions constructed by a depth-first traversal |
| 96 | +over each assignment-expression in an initializer-list and performing a |
| 97 | +depth-first traversal accessing each subobject of the assignment-expression. |
98 | 98 |
|
99 | 99 | \p If the target object is an array of unknown size, the object is assumed to |
100 | 100 | have \(m\) possible elements during parsing, where \(m>0\). |
101 | 101 |
|
102 | 102 | \p An initializer-list is a valid initializer if for each element |
103 | 103 | \(E_{n \bmod m}\) in the target object's flattened ordering there is a |
104 | | -corresponding initializer \(I_n\) in the flattened initializer sequence, which |
| 104 | +corresponding expression \(E_n\) in the flattened initializer sequence, which |
105 | 105 | can be implicitly converted to the element's type. For arrays of unknown size, |
106 | | -the total number of initializers must be a multiple of the array's base element |
107 | | -type. |
| 106 | +the total number of expressions in the flattened initializer sequence must be a |
| 107 | +multiple of the array's base element type. |
108 | 108 |
|
109 | 109 | \p An initializer-list is invalid if the flattened initializer sequence contains |
110 | 110 | more or fewer elements than the target object's flattened ordering, or if any |
|
0 commit comments