https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71974
--- Comment #1 from Rafael Guglielmetti <register at rgug dot ch> --- With gcc 6.1.1, the above code gives rise to the error: error: condition expression refers to iteration variable āiā So I suppose my syntax was incorrect. It is annoying tough.