[Bug c++/61382] parameter pack expansion unexpected order
thibaut.lutz at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jun 4 08:50:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61382
--- Comment #4 from Thibaut LUTZ <thibaut.lutz at googlemail dot com> ---
You're right, my bad. Thanks for correcting me.
The exact quote is
> Within the initializer-list of a braced-init-list, the initializer-clauses, including any that result from pack expansions, are evaluated in the order in which they appear. That is, every value computation and side effect associated with a given initializer-clause is sequenced before every value computation and side effect associated with any initializer-clause that follows it in the comma-separated list of the initializer-list.
So the increments *should* be sequenced.
Sorry about the noise.
More information about the Gcc-bugs
mailing list