Am Montag, 6. Februar 2006 17:40 schrieb Paul A. Rubin: > IIRC, MSVC also uses nonstandard scoping of loop indices. Again, my > memory is fuzzy, but I believe that > > for (int i=1; i<10; i++) ...; > ... > for (int i=1; i<n; i++) ...; > > should compile correctly in any standard implementation of C/C++, but I > think MSVC crabs that the second occurrence of 'int i' is redefining 'i'.
That was version 6 (pretty old now). The current version 8 (or 2005 since it is modern to replace version numbers with years now) adheres pretty well to the standard, and I think also version 7. Georg