[Bug c++/21837] New: C++/C99 standard violation in for loop

2005-05-31 Thread ahelm at gmx dot net
C++ standard quote: 3.3.2, paragraph 4: Names declared in the for-init-statement, and in the condition of if, while, for, and switch statements are local to the if, while, for, or switch statement (including the controlled statement), and shall not be re-declared in a subsequent condition of that

Re: [Bug c++/21837] New: C++/C99 standard violation in for loop

2005-05-31 Thread Gabriel Dos Reis
ahelm at gmx dot net [EMAIL PROTECTED] writes: | C++ standard quote: | | 3.3.2, paragraph 4: | Names declared in the for-init-statement, and in the condition of if, while, | for, and switch statements are local to the if, while, for, or switch statement | (including the controlled statement),