Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does the compiler generate an undefined identifier error for a variable Ive declared on a for loop?

0
Posted

Why does the compiler generate an undefined identifier error for a variable Ive declared on a for loop?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123