Why does the compiler generate an undefined identifier error for a variable Ive declared on a for loop?
The C++ International Standard has changed the scope rule for variable declared on a for loop. According to the standard, the scope ends at the end of the scope of the for loop. Compiling -std arm will give you the old ARM scoping rules. See Handling Scope Issues in Using Compaq C++ for OpenVMS Alpha.
Related Questions
- The compiler is reporting - undefined identifier symbolName. How can I find out which header file defines the symbol?
- Why does the compiler generate an undefined identifier error for a variable Ive declared on a for loop?
- Compilation of Cactus fails with the error: identifier "DECLARE_CCTK_PARAMETERS" is undefined?