In Visual Studio 2013, I wrote the following in an empty, brand new command line solution:
int main(int argc, char* argv[]) { int xs[1]; for (auto x : xs) do ; while (0); return 0; }
When compiling, I get the following error:
error C2059: syntax error : '}'
in a line containing one semicolon. I found a compiler error? Or is it a range based on the finer points of the loop beyond my comprehension?
c ++ c ++ 11 visual-c ++ visual-c ++ - 2013
Joshua lawn
source share