|
4455 | 4455 | as well as in argument passing, function return,
|
4456 | 4456 | throwing an exception\iref{except.throw},
|
4457 | 4457 | handling an exception\iref{except.handle},
|
4458 |
| -and aggregate member initialization\iref{dcl.init.aggr}, |
| 4458 | +and aggregate member initialization other than by a |
| 4459 | +\grammarterm{designated-initializer-clause}\iref{dcl.init.aggr}, |
4459 | 4460 | is called
|
4460 | 4461 | \defn{copy-initialization}.
|
4461 | 4462 | \begin{note}
|
|
4798 | 4799 | the initializer list is
|
4799 | 4800 | a brace-enclosed \grammarterm{designated-initializer-list},
|
4800 | 4801 | the element is initialized by the
|
4801 |
| -\grammarterm{designated-initializer-list} \tcode{\{ }\placeholder{D}\tcode{ \}}, |
| 4802 | +\grammarterm{braced-init-list} \tcode{\{ }\placeholder{D}\tcode{ \}}, |
4802 | 4803 | where \placeholder{D} is the \grammarterm{designated-initializer-clause}
|
4803 | 4804 | naming a member of the anonymous union member.
|
4804 | 4805 | There shall be only one such \grammarterm{designated-initializer-clause}.
|
|
4826 | 4827 | a narrowing conversion\iref{dcl.init.list} is required
|
4827 | 4828 | to convert the expression, the program is ill-formed.
|
4828 | 4829 | \begin{note}
|
| 4830 | +If the initialization is by \grammarterm{designated-initializer-clause}, |
| 4831 | +its form determines whether copy-initialization or direct-initialization |
| 4832 | +is performed. |
| 4833 | +\end{note} |
| 4834 | +\begin{note} |
4829 | 4835 | If an initializer is itself an initializer list,
|
4830 | 4836 | the element is list-initialized, which will result in a recursive application
|
4831 | 4837 | of the rules in this subclause if the element is an aggregate.
|
|
0 commit comments