1. Revision history
1.1. Since R3
-
Made minor editorial improvements to § 7 Proposed wording
-
Clarified that
a: a: f(); goto a;is ill-formed in discussion -
Fixed a wording bug that would prevent
label: while ...from being used in expansion-statements, in coordination with CWG reflector feedback -
Fixed various other wording problems during CWG review
1.2. Since R2
The paper was seen by EWG at Brno 2026, with the following poll taken:
P3568R2: Forward P3568R2 to CWG for inclusion in C++29
SF F N A SA 10 21 6 6 1 Result: consensus
The paper was also seen by SG22 during the 2026-09-09 telecon:
P3568R2: SG22 supports the addition of P3568R2 "break label; and continue label;" to the C++29 working draft
WG14:WG21:
SF F N A SA 1 3 2 1 0
SF F N A SA 1 3 2 1 0
Consequently, only some minor changes to the discussion and wording were made:
-
Mentioned Clang implementation in § 6 Implementation experience
-
Mentioned WG14 paper [N3658]
-
Fixed citations of WG14 polls having mislabeled "neutral" and "against" columns
-
Turned "A label can be used in a
gotostatement" part into a note in § 7 Proposed wording -
Rebased § 7 Proposed wording on [N5054]
-
Fixed some editorial wording errors
1.3. Since R1
-
Added some more motivation in § 3.4 Expansion statements
-
Rebased § 7 Proposed wording on the post-Croydon working draft
1.4. Since R0
The paper was seen by EWGI and then by EWG at Hagenberg 2025, with the following polls:
P3568R0: EWG likes syntax
N3355: for (...) { }
SF F N A SA 4 16 5 9 5 P3568R0: EWG likes syntax
for N3377 (...) { }
SF F N A SA 7 13 5 5 8 P3568R0: If C has it, we are interested in this feature too.
SF F N A SA 16 21 5 2 1
Due to lack of consensus in EWG, syntactical design choices were delegated to WG14. WG14 saw [N3377] at Graz 2025 and voted as follows:
N3377: Would WG14 like to see a paper changing loop name syntax at a future meeting?
Favor Against Abstain 6 11 9
The authors of [N3377] have expressed that they are no longer pursuing the paper; therefore, R1 of this paper assumes that the debate on label syntax is entirely settled, and C++ follows the [N3355] syntax.
Furthermore, the proposed wording has been improved slightly,
and a __cpp_break_label feature-test macro is now included.
2. Introduction
While C++ already has a broad selection of control flow constructs,
one construct commonly found in other languages is notably absent:
the ability to apply break or continue to a loop or switch when
this isn’t the innermost enclosing statement.
This feature is popular, simple, and quite useful:
Specifically, we propose the following functionality:
outer: for (auto x : xs) {
for (auto y : ys) {
if (/* ... */) {
continue outer; // OK, continue applies to outer for loop
break outer; // OK, break applies to outer for loop
}
}
}
switch_label: switch (/* ... */) {
default: while (true) {
if (/* ...*/) {
break switch_label; // OK, break applies to switch, not to while loop
}
}
}
break outer; // error: cannot break loop from the outside
goto outer; // OK, used to be OK, and is unaffected by this proposal
switch_label:; // OK, labels can be reused
goto switch_label; // error: jump target is ambiguous
The break label and continue label syntax is identical to that in [N3355]
and has been accepted into C2y (see working draft at [N3435]).
We bring that syntax into C++ and relax restrictions on labels to
make it more powerful,
and to address concerns in a follow-up proposal [N3377].
Note that break and continue with labels have been proposed in [N3879]
and rejected at Rapperswil 2014 ([N4327]):
Straw poll, proposal as a whole:
SF F N A SA 1 1 1 13 10 "break label;" + "continue label;"
SF F N A SA 3 8 4 9 3
I believe that rejecting break label was a grave mistake at a time.
Regardless, the WG21 sentiment towards the feature is now the opposite,
even if just for C compatibility (see § 1.4 Since R0).
3. Motivation
break label and continue label are largely motivated by the ability to control nested loops.
This is a highly popular feature in other languages,
and C++ could use it too, since it has no good alternative.
To be fair, a conditional return in the loop sometimes bypasses the need to terminate it.
However, this is not always allowed; such practice is outlawed by
MISRA-C++:2008 Rule 6-6-5 "A function shall have a single point of exit at the end of the function"
([MISRA-C++]).
Even if it is permitted, there are many cases where an early return does not obsolete
break, and it generally does not obsolete continue.
Note: I have been told that more recent revisions of MISRA-C++ no longer include this rule.
3.1. No good alternative
Let’s examine a motivating example which uses our new construct:
void f() {
process_files: for (const File& text_file : files) {
for (std::string_view line : text_file.lines()) {
if (makes_me_angry(line)) {
continue process_files;
}
consume(line);
}
std::println("Processed {}", text_file.path());
}
std::println("Processed all files");
}
continue label is very useful in this scenario,
and expresses our intent with unparalleled clarity.
We want to continue processing other files, so we continue process_files.
A plain break cannot be used here because it would result in executing the
following std::println statement, but this should only be done upon success.
There are alternative ways to write this, but all of them have various issues.
3.1.1. goto
for (const File& text_file : files) {
for (std::string_view line : text_file.lines()) {
if (makes_me_angry(line)) {
goto done_with_file;
}
consume(line);
}
std::println("Processed {}", text_file.path());
done_with_file:
}
std::println("Processed all files");
goto is similar in complexity and even readability here, however there are some issues:
-
gotocannot cross (non-vacuous) initialization, which would be an issue if some variable was initialized prior tostd::println. This can be addressed by surrounding the outer loop contents with another set of braces, but this solution isn’t obvious and takes away from the elegance ofgotohere. -
gotocannot be used in constant expressions. For processing text files like in the example, this doesn’t matter, but nested loops are desirable in aconstexprcontext as well. -
Many style guides ban or discourage the use of
goto. See [MISRA-C++], [CppCoreGuidelinesES76], etc. This discouragement dates all the way back to 1968 (see [GotoConsideredHarmful]), and 66 years of teaching not to usegotowon’t be undone. -
Even in the cases where
gotoisn’t discouraged, those cases are always special, like "onlygotoforwards", "onlygototo break out of loops", etc.. This issue has been debated for decades, and there is still no consensus on when, actually,gotois okay to use. -
gotois innately more difficult to use because to understand its purpose, the user has to know where the jump target is located. Agoto past_the_loopbehaves radically differently compared to agoto before_the_loop. Moving the jump target or thegotostatement relative to each other can also completely change these semantics. By comparison,breakandcontinuealways jump forwards, past a surrounding loop, or to the end of a surrounding loop respectively. This makes them much easier to reason about, and much less error-prone. -
The "local readability" of
gotorelies heavily on high-quality naming for the label. Agoto endcould mean to the end of a loop, to after the loop, to the end of a function, etc. Sincebreakandcontinueare much more limited, they do not require such good label naming. Abreak loophas bad name, but the user generally understands its purpose.
Note: Previous discussion on the [isocpp-core] reflector has addressed the idea
of just adding constexpr goto,
but doing so is alleged to be more complicated than more limited constexpr control flow
structures which can only "jump forwards", such as break and continue.
In conclusion, there are too many issues with goto, some of which may never be resolved.
[std-proposals] discussion prior to the publication of this proposal has shown once again
that goto is a controversial and divisive.
3.1.2. Immediately invoked lambda expression (IILE)
for (const File& text_file : files) {
[&] {
for (std::string_view line : text_file.lines()) {
if (makes_me_angry(line)) {
return;
}
consume(line);
}
std::println("Processed {}", text_file.path());
}();
}
std::println("Processed all files");
While this solution works in constant expressions,
we may be painting ourselves into a corner with this design.
We cannot also break the surrounding loop from within the IILE,
and we cannot return from the surrounding function.
If this is needed at some point, we will have to put substantial effort into refactoring.
Furthermore, this solution isn’t exactly elegant:
-
The level of indentation has unnecessarily increased through the extra scope.
-
The call stack will be one level deeper during debugging. This may be relevant to debug build performance.
-
The fact that the lambda is immediately invoked isn’t obvious until reading up to
(). -
The word
returndoes not express the overall intent well, which is merely to continue the outer loop. This can be considered a teachability downside.
It is also possible to use an additional function instead of an IILE in this place. However, this is arguably increasing the degree of complexity even more, and it scatters the code across multiple functions without any substantial benefit.
3.1.3. Mutable bool state
for (const File& text_file : files) {
bool success = true;
for (std::string_view line : text_file.lines()) {
if (makes_me_angry(line)) {
success = false;
break;
}
consume(line);
}
if (success) {
std::println("Processed {}", text_file.path());
}
}
std::println("Processed all files");
This solution substantially increases complexity. Instead of introducing extra scope and call stack depth, we add more mutable state to our function. The original intent of "go process the next file" is also lost.
Such a solution also needs additional state for every nested loop,
i.e. N bools are needed to continue from N nested loops.
3.2. Constant expressions
Use of constexpr has become tremendously more common,
and goto may not be used in constant expressions.
Where goto is used to break out of nested loops, break label makes it easy to migrate code:
goto to break out of nested loops can be replaced with break label as follows:
constexpr void f() {
outer: while (/* ... */) {
while (/* ... */) {
if (/* ... */) {
goto after_loop;
break outer;
}
}
}
after_loop:;
}
Due to reasons mentioned above,
I do not believe that "constexpr goto" is a path forward that will find consensus.
3.3. Argumentum ad populum
Another reason to have break label and continue label is simply that it’s a
popular construct, available in other languages.
When Java, JavaScript, Rust, or Kotlin developers pick up C++,
they may expect that C++ can break out of nested loops as well,
but will find themselves disappointed.
[StackOverflow] "Can I use break to exit multiple nested for loops?"
shows that there is interest in this feature (393K views at the time of writing).
A draft of the proposal was posted on [Reddit] and received overwhelmingly positive feedback (70K views, 143 upvotes with, 94% upvote rate at the time of writing).
3.3.1. Poll
Another way to measure interest is to simply ask C++ users. The following is a committee-style poll (source: [TCCPP]) from the Discord server Together C & C++, which is the largest server in terms of C++-focused message activity:
Should C++ have "break label" and "continue label" statements to apply break/continue to nested loops or switches?
SF F N A SA 21 21 12 6 4
Note: 64 users in total voted, and the poll was active for one week.
3.3.2. How common is break/continue with labels?
To further quantify the popularity, we can use GitHub code search for various
languages which already support this feature.
The following table counts only control statements with a label,
not plain break;, continue;, etc.
We also count statements like Perl’s last label;
it is de-facto break label, just with a different spelling.
| Language | Syntax | Labeledbreaks
| Labeledcontinues
| Σ break continue
|
| Java | label: for (...)break label;continue label;
| 424K files | 152K files | 576K files |
| JavaScript | label: for (...)break label;continue label;
| 53.8K files | 68.7K files | 122.5K files |
| Perl | label: for (...)last label;next label;
| 34.9K files | 31.7K files | 66.6K files |
| Rust | label: for (...)break 'label;continue 'label;
| 30.6K files | 29.1K files | 59.7K files |
| TypeScript | label: for (...)break label;continue label;
| 11.6K files | 9K files | 20.6K files |
| Swift | label: for ...break labelcontinue label
| 12.6K files | 5.6K files | 18.2K files |
| Kotlin | label@ for (...)break@labelcontinue@label
| 8.7K files | 7.6K files | 16.3K files |
| D | label: for (...)break label;continue label;
| 3.5K files | 2.6K files | 6.1K files |
| Go | label: for ...break label;continue label;
| 270 files | 252 files | 522 |
| Ada | label: for ...exit label;
| N/A | N/A | N/A |
| Dart | label: for ...break label;continue label;
| N/A | N/A | N/A |
| Cpp2 (cppfront) | label: for ...break label;continue label;
| N/A | N/A | N/A |
| C | label: for (...)break label;continue label;
| N/A | N/A | N/A |
| Fortran | label: do ...exit label
| N/A | N/A | N/A |
| Groovy | label: for ...break label;continue label;
| N/A | N/A | N/A |
| Odin | label: for ...break label;
| N/A | N/A | N/A |
| PL/I | label: do ...exit label;
| N/A | N/A | N/A |
| PostgreSQL | <<label>> for ...exit label;
| N/A | N/A | N/A |
| PowerShell | :label for ...break outer
| N/A | N/A | N/A |
Based on this, we can reasonably estimate that there are at least one million files
in the world which use labeled break/continue (or an equivalent construct).
Note: This language list is not exhaustive and the search only includes open-source code bases on GitHub. Some of the cells are N/A because the number isn’t meaningful, or simply because I haven’t gotten around to doing the code search yet.
3.4. Expansion statements
The proposed break label feature also has interesting interactions
with C++26 expansion statements.
break label makes it possible to break out of a loop
that the expansion statement is nested within.
outer: for (const auto& tuple : list_of_tuples) {
template for (const auto& e : tuple) {
if (/* ... */) {
break outer;
}
}
}
A regular break; statement would instead apply to the expansion statement itself,
meaning that neither break nor continue of loops is possible from expansion statements.
cases for a switch
using expansion statements.
If so, break label is needed to prevent fallthrough between cases:
outer: switch (/* ... */) {
template for (constexpr int N : cases) {
case N: f<N>();
break outer;
}
}
Without the break outer, the generated code would be:
case 0: f<0>(); // fallthrough! case 1: f<1>(); case 2: f<2>();
3.5. C2y compatibility
Last but not least, C++ should have break label and continue label
to increase the amount of code that has a direct equivalent in C.
Such compatibility is desirable for two reasons:
-
inlinefunctions or macros used in C/C++ interoperable headers could use the same syntax. -
C2y code is much easier to port to C++ (and vice-versa) if both languages support the same control flow constructs.
Furthermore, the adoption of [N3355] saves EWG a substantial amount of time when it comes to debating the syntax; the C++ syntax should certainly be C-compatible.
4. Design Considerations
4.1. Alternative break and continue forms
While the idea of applying break and continue
to some surrounding construct of choice is simple,
there are infinite ways to express this.
Various ideas have been proposed over the last months and years:
-
break 1,break 2, ... (specify the amount of loops, not the targeted loop) -
break while,break for while, ... (target by keyword, not by label) -
break break(execute statement in the jumped-to scope) -
for name (...)(competing syntax in [N3377])
All of these have been discussed in great detail in the first revision of this paper, [P3568R0]. At this point, it would be a waste of time to discuss these in detail.
WG21 overwhelmingly agrees (based on polls, reflector discussions, and personal conversations) that the design should be compatible with C. This is also reflected by a poll at Hagenberg 2025:
P3568R0: If C has it, we are interested in this feature too.
SF F N A SA 16 21 5 2 1
Furthermore, WG14 has already accepted the label: for syntax of [N3355]
into C2y, and WG14 is unwilling to revisit this syntax,
as voted at Graz 2025:
N3377: Would WG14 like to see a paper changing loop name syntax at a future meeting?
Favor Against Abstain 6 11 9
There is only one way forward that has a chance of finding consensus: do what C does.
4.2. Changes to labels
While the proposed for name (...) syntax of [N3377]
was de-facto rejected at Graz,
the paper brings up legitimate issues with C2y break label after [N3355].
Notably, the restriction that a label can be used only once per function is not usually
present in other languages that support break label.
This restriction is especially bad for C and C++ because if label: was used in a macro,
that macro could only be expanded once per function:
#define MACRO() outer: for (/* ... */) for (/* ... */) break outer;
void f() {
MACRO() // OK so far
MACRO() // error: duplicate label 'outer'
}
These issues are addressed in WG14 by [N3658], which provides the same relaxation to label semantics as this C++ proposal. While [N3658] is not in the C2y working draft yet, a directional poll was given during the August 2025 meeting:
Opinion Poll: Would WG14 like to adopt something along the lines of N3658 into C2y?
1-1-0 + 17-6-1 = 18-7-1: strong direction
With 7 votes against, the decision was somewhat contentious, but there is clear support for the direction of the paper. During the SG22 2026-09-09 telecon, the author expressed they would continue work on [N3658].
4.2.1. Design philosophy
The proposed design is extremely simple:
Drop all restrictions on labels.
Make
break labelandcontinue label"just work" anyway.Disallow
goto labelfor duplicatelabel.
Any existing goto code remains unaffected by this change.
These rules are simple and easy to remember.
While it may seem too lax to put no restrictions on labels at all,
there’s no obvious problem with this.
Labels don’t declare anything, and unless referenced by break and goto,
they are de-facto comments with zero influence on the labeled code.
If labels are quasi-comments, why should there be any restrictions on the labels themselves?
The consequences and details of these changes are described below.
4.2.2. Allowing duplicate labels
I propose to permit duplicate labels, which makes the following code valid:
outer: while (true) {
inner: while (true) {
break outer; // breaks enclosing outer while loop
}
}
outer: while (true) { // OK, reusing label is permitted
inner: while (true) {
break outer; // breaks enclosing outer while loop
}
}
goto outer; // error: ambiguous jump target
Such use of duplicate labels (possibly with different syntax)
is permitted in numerous other languages,
such as Rust, Kotlin, Java, JavaScript, TypeScript, Dart, and more.
To be fair, languages that also support goto require unique labels per function,
but there’s no technical reason why the uniqueness restriction
couldn’t be placed on goto rather than the labels themselves.
As mentioned before, permitting such code is especially useful when these loops are not
hand-written, but expanded from a macro.
Even disregarding macros, there’s nothing innately wrong about this code,
and it is convenient to reuse common names like outer: for controlling nested loops.
Note: Existing code using goto is unaffected
because existing code cannot have duplicate labels in the first place.
4.2.3. Reusing labels in nested loops
A more controversial case is the following:
l: while (true) {
l: while (true) {
break l; // equivalent to break;
}
}
break l generally applies to the innermost loop labeled l:,
so the inner loop is targeted here.
I believe that this code should be valid
because it keeps the label restrictions stupidly simple (there are none),
and because this feature may be useful to developers.
One may run into this case when nesting pairs of outer:/inner:
loops in each other "manually",
or when an l:-labeled loop in a macro is expanded into a surrounding loop that also uses l:.
Note: This code is not valid Java or JavaScript, but is valid Rust when using the label 'l.
4.2.4. Duplicate labels on the same statement
A more extreme form of the scenario above is:
l: l: l: l: f();
I also believe that this code should be valid because it’s not harmful, and may be useful in certain, rare situations (see below). Once again, allowing it keeps the label restrictions stupidly simple.
// common idiom on C: expand loops from macros
#define MY_LOOP_MACRO(...) outer: for (/* ... */)
outer: MY_LOOP_MACRO(/* ... */) {
break outer;
}
If MY_LOOP_MACRO already uses an outer: label internally,
perhaps because it expands to two nested loops and uses continue outer; itself,
then the macro effectively expands to outer: outer:.
This forces the user to come up with a new label now,
for no apparent reason.
However, goto with duplicated label sequences should be ill-formed
because this perpetuates the historical restriction.
[[a]] l: l: l: [[b]] l: f(); goto l; // error
Even if goto can only effectively jump to one place in that scenario,
it may be surprising and confusing to allow such gotos,
especially considering that labels can have attributes,
and it would be unclear whether goto jumps to the label with [[a]] or the label with [[b]],
or to one without an attribute.
4.2.5. break label for loops with more than one label
Another case to consider is this:
x: y: while (true) {
break x; // OK in C2y
}
[N3355] makes wording changes to C so that the code above is valid.
For C2y compatibility and convenience, we also make this valid.
We don’t change the C++ grammar to accomplish this,
but define the term (to) label (a statement),
where x labels while.
5. Impact on existing code
No existing code becomes ill-formed or has its meaning altered. This proposal merely permits code which was previously ill-formed, and relaxes restrictions on the placement of labels.
6. Implementation experience
A Clang implementation of [N3355] is available in C++ mode
when specifying -Xclang -fnamed-loops.
This implementation fully provides break label; and continue label;,
including during constant evaluation.
However, it does not include the [N3658] relaxations
which allow for duplicate labels in the same function,
so Clang does not fully implement this C++ paper.
However, Clang implementers have expressed that this C++ feature is implementable.
A GCC implementation of [N3355] has also been committed at [GCC].
7. Proposed wording
The wording is relative to [N5054] with changes from the 2026-03 Croydon meeting applied.
Update [basic.pre] paragraph 3 as follows:
A name is
- an identifier token ([lex.token], [lex.name]) other than
- the identifier of a label ([stmt.label]) or literal-operator-id ([over.literal]),
- the identifier (if any) following a
goto,break, orcontinuein a jump-statement ([stmt.jump.general])- any identifier in a module-name ([module.unit]) or attribute-token ([dcl.attr.grammar]), or
- a conversion-function-id ([class.conv.fct]),
- an operator-function-id ([over.oper]), or
- a literal-operator-id ([over.literal]).
Update [stmt.label] paragraph 1 as follows:
A label can be added to a statement or used anywhere in a compound-statement.label:The optional attribute-specifier-seq appertains to the label.
attribute-specifier-seqopt identifierlabeled-statement::
attribute-specifier-seqoptcaseconstant-expression:
attribute-specifier-seqoptdefault:
label statementThe only use of a label with an identifier is as the target of agoto. No two labels in a function shall have the same identifier.
[Note: A label can be used in agotostatement ([stmt.goto]) before its introduction. A function can contain multiple labels with the same identifier, but such duplicate labels cannot be used in agotostatement. — end note ]
In [stmt.label] insert a new paragraph after paragraph 1:
An identifier labels a statement if is the statement of a labeled-statement and
- is the identifier (if any) of the label of , or
- labels .
[ Example:a: b: while (0) { } // both a and b label the loop c: { d: switch (0) { // unlike c, d labels the switch statement e: default: f: while (0) { } // both e and f label the loop } }— end example ]
Note: This defines the verb (to) label (something), which is used extensively below.
We also don’t want case or default labels to label statements, since this would inadvertently
permit break i given case i:, considering how we word [stmt.break].
Update [stmt.label] paragraph 3 as follows:
A control-flow-limited statement is a statement for which:
- a
caseordefaultlabel appearing within shall be associated with aswitchstatement ([stmt.switch]) within , and- a label declared in shall only be referred to by a statement
([stmt.goto])in .
Note: While the restriction still primarily applies to goto
(preventing the user from e.g. jumping into an if constexpr statement),
if other statements can also refer to labels, it is misleading to say
"statement ([stmt.goto])" as if goto was the only relevant statement.
Delete [stmt.label] paragraph 4:
An identifier label shall not be enclosed by an expansion-statement ([stmt.expand]).
Update [stmt.jump.general] paragraph 1 as follows:
Jump statements unconditionally transfer control.jump-statement:gotoidentifier;
breakidentifieropt;
continueidentifieropt;
returnexpr-or-braced-init-listopt;
coroutine-return-statement
gotoidentifier;
Note: goto is being relocated to the top so that all the jump statements with an identifier
are grouped together.
Of these three, goto is being listed first because it models the concept of
"jumping somewhere" most literally; every following statement is more sophisticated or even
defined as equivalent to goto (in the case of continue).
Update [stmt.break] paragraph 1 as follows:
A breakable statement is an iteration-statement ([stmt.iter]), an expansion-statement ([stmt.expand]), or aswitchstatement ([stmt.switch]).AThebreakstatement shall be enclosed by ([stmt.pre]) an iteration-statement ([stmt.iter]), an expansion-statement, or aswitchstatement ([stmt.switch]).breakstatementcauses termination of the innermost such enclosing statement;selects an enclosing statement as follows:shall exist and shall be a breakable statement.
- If an identifier is present, is the innermost enclosing statement labeled by .
- Otherwise, is the innermost enclosing breakable statement.
controlControl passes to the statement followingthe terminated statement, if any.
[ Example:y: a: b: while (/* ... */) { a: a: c: for (/* ... */) { break; // OK, terminates enclosing for loop break a; // OK, same break b; // OK, terminates enclosing while loop y: { break y; } // error: break does not refer to a breakable statement } break c; // error: break does not refer to an enclosing statement } break; // error: break is not enclosed by a breakable statement— end example ]
Update [stmt.cont] paragraph 1 as follows:
A continuable statement is an iteration-statement ([stmt.iter]) or an expansion-statement ([stmt.expand]).AThecontinuestatement shall be enclosed by ([stmt.pre]) an iteration-statement or expansion-statementcontinuestatement selects an enclosing statement as follows:shall exist and shall be a continuable statement. If
- If an identifier is present, is the innermost enclosing statement labeled by .
- Otherwise, is the innermost enclosing continuable statement.
the innermost enclosing such statementis an iteration-statement ([stmt.iter]), thecontinuestatement causes control to pass to the end of the statement of . Otherwise, control passes to the end of the compound-statement of the current ([stmt.expand]).
Update [stmt.goto] paragraph 1 as follows:
TheAgotostatement with an identifier unconditionally transfers control tothe statement labeled by the identifiera labeled-statement where the identifier of the label is ,The identifier shall be a label ([stmt.label]) locatedin the current function. There shall be exactly one such statement, and such a statement shall not be enclosed by an expansion-statement.
Add a feature-test macro to [tab:cpp.predefined.ft] as follows:
Macro name Value __cpp_break_label202611L
8. Acknowledgements
I thank Sebastian Wittmeier for providing a list of languages that support both
goto and break/last with the same label syntax.
I thank Arthur O’Dwyer and Jens Maurer for providing wording feedback and improvement suggestions.
I especially thank Arthur O’Dwyer for helping me expand the list in § 3.3.2 How common is break/continue with labels?. An even more complete list may be available at [ArthurBlog].
I thank the Together C & C++ community for responding to my poll; see [TCCPP].
I thank Matthias Wippich for explaining the interactions of break label
with expansion statements;
see § 3.4 Expansion statements.