On Mon, Mar 21, 2016 at 05:45:52PM +0300, Ilya Verbin wrote:
> www.cilkplus.org/sites/default/files/open_specifications/Intel_Cilk_plus_lang_spec_1.2.htm
> says:
> In C++, the control variable shall be declared and initialized within the
> initialization clause of the _Cilk_for loop. The variable shall have
> automatic
> storage duration. The variable shall be initialized. Initialization may be
> explicit, using assignment or constructor syntax, or implicit via a
> nontrivial
> default constructor.
>
> This patch enables constructor-syntax initialization.
> Bootstraped and regtested on x86_64-linux. OK for stage1?
Does this affect just _Cilk_for or also #pragma simd? What about
(some_class i { 0 }; some_class < ...; some_class++)
and similar syntax? The testsuite coverage is insufficient (nothing e.g.
tests templates or #pragma simd).
Jakub