Open
Description
According to [stmt.for],
for (; false; ++i) int i = 5;
is equivalent to:
{
;
while (false) {
int i = 5;
++i;
}
}
which is well-formed. But this is clearly not the intent, and all compilers I tried reject the for
loop above (when there is no other i
around, of course).
Metadata
Metadata
Assignees
Labels
No labels