09-16-2012 01:13 PM
I think this is the same as DPD200292117 which has been fixed just in the last week or so. The problem occurs when old style for loops are enabled with the /Zc:forScope- option and you are using MSVC++ 2012 (where c++11 range based for loops are enabled). These two kinds of loops are not allowed to be used together, but we should allow the option and only give a warning when we see an actual range based for loop in the code. This should be fixed in the next update. Sorry for the inconvenience.