Skip to content

[2026-11 CWG Motion 10] P3568R4 break label; and continue label; - #9421

Open
eisenwave wants to merge 2 commits into
cplusplus:mainfrom
eisenwave:motions-2026-11-cwg-10
Open

eisenwave wants to merge 2 commits into
cplusplus:mainfrom
eisenwave:motions-2026-11-cwg-10

Conversation

@eisenwave

Copy link
Copy Markdown
Member

Fixes #9408
Also fixes cplusplus/papers#2212

@eisenwave
eisenwave requested a review from jensmaurer November 22, 2026 14:09
Comment thread source/statements.tex Resolved
Comment thread source/statements.tex Resolved
@eisenwave
eisenwave requested a review from jensmaurer November 22, 2026 15:33
Comment thread source/statements.tex
\indextext{\idxgram{expansion-statement}}%
an \grammarterm{expansion-statement}\iref{stmt.expand}.
The \tcode{continue} statement
selects and enclosing statement $X$ as follows:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo, should be "an", not "and"

Comment thread source/statements.tex
an \grammarterm{iteration-statement}\iref{stmt.iter} or
\indextext{\idxgram{expansion-statement}}%
an \grammarterm{expansion-statement}\iref{stmt.expand}.
The \tcode{continue} statement

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not \keyword ?

Comment thread source/statements.tex
label\iref{stmt.label} located in the current function.
A \tcode{goto} statement with an \grammarterm{identifier} $J$
unconditionally transfers control to a \grammarterm{labeled-statement}
where the identifier of the \grammarterm{label} is $J$,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should identifier be \grammarterm here also?

Comment thread source/statements.tex
\pnum
The \tcode{goto} statement unconditionally transfers control to the
statement labeled by the identifier. The identifier shall be a
\indextext{label}%

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why kill \indextext{label}?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2026-11 CWG Motion 10] P3568R4 break label; and continue label; P3568 R3 break label; and continue label;

3 participants