[stmt.cont] (original) (raw)

8 Statements [stmt.stmt]

8.7 Jump statements [stmt.jump]

8.7.3 The continue statement [stmt.cont]

Thecontinuestatement shall occur only in aniteration-statementand causes control to pass to the loop-continuation portion of the smallest enclosing iteration-statement, that is, to the end of the loop.

More precisely, in each of the statements

while (foo) { { } contin: ;}

do { { } contin: ;} while (foo);

for (;;) { { } contin: ;}

a continue not contained in an enclosed iteration statement is equivalent to goto contin.