Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7371,17 +7371,6 @@
of a coroutine is ill-formed\iref{dcl.contract.func}.
\end{note}

\pnum
If searches for the names \tcode{return_void} and \tcode{return_value}
in the scope of the promise type each find any declarations,
the program is ill-formed.
\begin{note}
If \tcode{return_void} is found, flowing off
the end of a coroutine is equivalent to a \keyword{co_return} with no operand.
Otherwise, flowing off the end of a coroutine
results in undefined behavior\iref{stmt.return.coroutine}.
\end{note}

\pnum
The expression \tcode{\exposid{promise}.get_return_object()} is used
to initialize
Expand Down
3 changes: 1 addition & 2 deletions source/statements.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1221,8 +1221,7 @@
\end{itemize}

\pnum
If a search for the name \tcode{return_void} in the scope of the promise type
finds any declarations,
If overload resolution for \placeholder{p}\tcode{.return_void()} succeeds,
flowing off the end of a coroutine's \grammarterm{function-body}
is equivalent to a \keyword{co_return} with no operand;
otherwise flowing off the end of a coroutine's \grammarterm{function-body}
Expand Down
Loading