[gomp] c++ for declarations

Andrew Pinski pinskia@physics.uc.edu
Mon Oct 17 22:35:00 GMT 2005


On Oct 17, 2005, at 6:32 PM, Diego Novillo wrote:

> On Monday 17 October 2005 18:21, Andrew Pinski wrote:
>
>> int main()
>> {
>>    #pragma omp for
>>    for (int i = f1(); i <= f2(); i += f3())
>>      a[i] = 1;
>>
> Syntax error.

Should it be the same as the C++ case?
I don't see why it is not handled the same.

This is with -std=c99 obviously.

-- Pinski



More information about the Gcc-patches mailing list