Mark Dalphin wrote:
> ======================================================================
>
> The next several patches all "repair" the same problem. The re-declaration
> of the variable 'i' as an 'int' in the second of two 'for' loops, causes
> an error for the SGI C++ compiler. It complains that 'i' is already in
> scope. This is only a problem in the example code.
Unfortunately, this will cause compilers that more closely follow
the standard to fail. The 'correct' way to solve this is to pull
the declaration of 'i' out of the loop headers.
int i;
for (i ...
--
Mark Hollomon
mhh(at)nortelnetworks(dot)com
ESN 451-9008 (302)454-9008