diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2024-08-19 20:50:54 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2024-08-24 19:56:28 +0100 |
commit | c442a9b78bdbebdbcb4a8f91bc36961eb732fbdf (patch) | |
tree | 68fa467e9528c5638883f3e6940abade29ab838d /gcc/dwarf2codeview.cc | |
parent | f0315f7a325ffccb446fe378fcdfccda6eead8ba (diff) | |
download | gcc-c442a9b78bdbebdbcb4a8f91bc36961eb732fbdf.zip gcc-c442a9b78bdbebdbcb4a8f91bc36961eb732fbdf.tar.gz gcc-c442a9b78bdbebdbcb4a8f91bc36961eb732fbdf.tar.bz2 |
c++, coroutines: Look through initial_await target exprs [PR110635].
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/dwarf2codeview.cc')
0 files changed, 0 insertions, 0 deletions