name lookup of 'i' changed for new ISO 'for' scoping

A warning for a code block with no parent if/for/while etc is valid, yes. You can't give warnings for bad indentation, unless you want to program in COBOL.