[cfe-commits] r56060 - /cfe/trunk/lib/Parse/ParseStmt.cpp
Neil Booth
neil at daikokuya.co.uk
Thu Sep 11 15:04:32 PDT 2008
Argiris Kirtzidis wrote:-
> I think this is more explicit:
>
> // C++ 3.3.2p4:
> // 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).
>
> Should I replace the "C++ 6.4p3" quote, with the above one ?
I don't think it adds anything - it doesn't say a new scope is
created.
Note this "local" wording is also there for blocks. But then
in 6.3 it is explicit that a compound statement creates a local
scope.
Neil.
More information about the cfe-commits
mailing list