Skip to content

Commit

Permalink
Add new para
Browse files Browse the repository at this point in the history
  • Loading branch information
RexJaeschke committed Jun 21, 2022
1 parent 1586898 commit 8d40c49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions standard/statements.md
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,8 @@ The target of a `goto case` statement is the statement list in the immediately e

The target of a `goto default` statement is the statement list in the immediately enclosing `switch` statement ([§12.8.3](statements.md#1283-the-switch-statement)), which contains a `default` label. If the `goto default` statement is not enclosed by a `switch` statement, or if the nearest enclosing `switch` statement does not contain a `default` label, a compile-time error occurs.

It is a compile-time error for *constant_pattern* to target a *switch_label* containing a *case_guard*.

A `goto` statement cannot exit a `finally` block ([§12.11](statements.md#1211-the-try-statement)). When a `goto` statement occurs within a `finally` block, the target of the `goto` statement shall be within the same `finally` block, or otherwise a compile-time error occurs.

A `goto` statement is executed as follows:
Expand Down

0 comments on commit 8d40c49

Please sign in to comment.