Open
Description
[dcl.init.general]p20 says:
If the initializer is a parenthesized expression-list, the expressions are evaluated in the order specified for function calls ([expr.call]).
However, that's not intended for parenthesized aggregate-initialization introduced by P0960R3, of which the evaluation order went back-and-forth but finally settled on in-order, left-to-right evaluation.
-If the initializer is a parenthesized \grammarterm{expression-list},
+Unless otherwise specified,
the expressions are evaluated in the order
-specified for function calls\iref{expr.call}.
+specified for function calls\iref{expr.call}
+if the initializer is a parenthesized \grammarterm{expression-list}.
Would this be a suitable change?
Activity