This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Does GCC extension support declaration in for() statement?



I'm used to writing for loops with the iterating variable declared inside the for() statement,
as in GCC/C99/C++, but with CCS, code like this

 for(int x=0; x<3; x++)  {   x++;  }

wouldn't compile, saying

error: expected an expression
error: identifier "x" is undefined

I'm using Code Generation Tools v7.3.4 with --gcc switch enabled. Any ideas how to allow the above syntax?
If it's not available, how can I request this enhancement to be included in the future versions?

Thanks.