Re: [PATCH][CilkPlus] Allow parenthesized initialization in for-loops

2016-05-19 Thread Jason Merrill
On 05/10/2016 03:28 PM, Ilya Verbin wrote: What about (some_class i { 0 }; some_class < ...; some_class++) and similar syntax? It's allowed, thanks, I missed this in the initial patch. The testsuite coverage is insufficient (nothing e.g. tests templates or #pragma simd). Patch is updated.

Re: [PATCH][CilkPlus] Allow parenthesized initialization in for-loops

2016-05-10 Thread Ilya Verbin
On Fri, Mar 25, 2016 at 18:23:23 +0300, Ilya Verbin wrote: > On Mon, Mar 21, 2016 at 15:58:18 +0100, Jakub Jelinek wrote: > > 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: >

Re: [PATCH][CilkPlus] Allow parenthesized initialization in for-loops

2016-03-25 Thread Ilya Verbin
On Mon, Mar 21, 2016 at 15:58:18 +0100, Jakub Jelinek wrote: > 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

Re: [PATCH][CilkPlus] Allow parenthesized initialization in for-loops

2016-03-21 Thread Jakub Jelinek
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

[PATCH][CilkPlus] Allow parenthesized initialization in for-loops

2016-03-21 Thread Ilya Verbin
Hi! 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