.. and, to make things more interesting ;) for:
for (int a, b, c: arr)
we currently give:
63985.C:7:19: error: expected initializer before β:β token
63985.C:7:21: warning: range-based βforβ loops only available with
-std=c++11 or -std=gnu++11
because, inside cp_parse_init_declarator we are in "error mode" for
range-based after the first comma thus, as a for loop, we complain about
the missing initializer; then in cp_parser_for_init_statement we notice
the ':' and we give the warning / we think is a range-based.
Paolo.