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. _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
