Skip to content

[stmt.return,dcl.fct.def.coroutine] Avoid use of 'glvalue result' #4803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6466,7 +6466,7 @@
\pnum
The expression \tcode{\exposid{promise}.get_return_object()} is used
to initialize
the glvalue result or prvalue result object of a call to a coroutine.
the returned reference or prvalue result object of a call to a coroutine.
The call to \tcode{get_return_object}
is sequenced before
the call to \tcode{initial_suspend}
Expand Down
3 changes: 2 additions & 1 deletion source/statements.tex
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,8 @@
in a function whose return type is not \cv{}~\keyword{void};
\indextext{conversion!return type}%
the \tcode{return} statement initializes the
glvalue result or prvalue result object of the (explicit or implicit) function call
returned reference or prvalue result object
of the (explicit or implicit) function call
by copy-initialization\iref{dcl.init} from the operand.
\begin{note}
A \tcode{return} statement can involve
Expand Down