aboutsummaryrefslogtreecommitdiff
path: root/gcc/README
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2024-08-19 20:50:54 +0100
committerIain Sandoe <iain@sandoe.co.uk>2024-08-24 19:56:28 +0100
commitc442a9b78bdbebdbcb4a8f91bc36961eb732fbdf (patch)
tree68fa467e9528c5638883f3e6940abade29ab838d /gcc/README
parentf0315f7a325ffccb446fe378fcdfccda6eead8ba (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
c++, coroutines: Look through initial_await target exprs [PR110635].HEADtrunkmaster
In the case that the initial awaiter returns an object, the initial await can be a target expression and we need to look at its initializer to cast the await_resume() to void and to wrap in a compound expression that sets the initial_await_resume_called flag. PR c++/110635 gcc/cp/ChangeLog: * coroutines.cc (cp_coroutine_transform::wrap_original_function_body): Look through initial await target expressions to find the actual co_await_expr that we need to update. gcc/testsuite/ChangeLog: * g++.dg/coroutines/pr110635.C: New test. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Diffstat (limited to 'gcc/README')
0 files changed, 0 insertions, 0 deletions