This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118c. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2025-10-25


3084. compound-statements inside iteration-statements

Section: 8.8.3  [stmt.cont]     Status: tentatively ready     Submitter: US     Date: 2025-10-01

N5028 comment US 36-069

There is no iteration-statement production that directly contains a compound-statement.

Proposed resolution (approved by CWG 2025-10-24):

Change in 8.8.3 [stmt.cont] paragraph 1 as follows:

A continue statement shall be enclosed by (8.1 [stmt.pre]) an iteration-statement or an expansion-statement. If the innermost enclosing such statement X is an iteration-statement (8.6 [stmt.iter]), the continue statement causes control to pass to the end of the statement or compound-statement of X. Otherwise, control passes to the end of the compound-statement of the current Si (8.7 [stmt.expand]).