Skip to content

Commit ea75121

Browse files
burblebeetkoeppe
authored andcommitted
CWG2452 Flowing off the end of a coroutine
1 parent 7ee5245 commit ea75121

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/statements.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,8 +924,10 @@
924924

925925
\pnum
926926
If \placeholder{p}\tcode{.return_void()} is a valid expression,
927-
flowing off the end of a coroutine is equivalent to a \tcode{co_return} with no operand;
928-
otherwise flowing off the end of a coroutine results in undefined behavior.
927+
flowing off the end of a coroutine's \grammarterm{function-body}
928+
is equivalent to a \tcode{co_return} with no operand;
929+
otherwise flowing off the end of a coroutine's \grammarterm{function-body}
930+
results in undefined behavior.
929931

930932
\rSec2[stmt.goto]{The \tcode{goto} statement}%
931933
\indextext{statement!\idxcode{goto}}

0 commit comments

Comments
 (0)