Title
Sequencing of braced-init-list arguments
Status
open
Section
7.6.1.3 [expr.call]
Submitter
Richard Smith

Created on 2016-06-30.00:00:00 last changed 102 months ago

Messages

Date: 2022-02-18.07:47:23

As of P0400R0 (Wording for Order of Evaluation of Function Arguments), we have in subclause 7.6.1.3 [expr.call] paragraph 8:

The postfix-expression is sequenced before each expression in the expression-list and any default argument. The initialization of a parameter, including every associated value computation and side effect, is indeterminately sequenced with respect to that of any other parameter.

What about the case when the element in the expression-list is a braced-init-list rather than an expression? The braced-init-list is certainly evaluated left-to-right, but is that required to happen after we evaluate the postfix-expression?

History
Date User Action Args
2016-06-30 00:00:00admincreate