aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2021-03-11 14:22:37 +0000
committerIain Sandoe <iain@sandoe.co.uk>2021-03-15 15:50:25 +0000
commit26e0eb1071e318728bcd33f28d055729ac48792c (patch)
treee3154d2e79be26b4f6ae9768360e42d99ae51b50 /libjava
parented8198461735f9b5b3c2cbe50f9913690ce4b4ca (diff)
downloadgcc-26e0eb1071e318728bcd33f28d055729ac48792c.zip
gcc-26e0eb1071e318728bcd33f28d055729ac48792c.tar.gz
gcc-26e0eb1071e318728bcd33f28d055729ac48792c.tar.bz2
coroutines : Handle for await expressions in for stmts [PR98480].
The handling of await expressions in the init, condition and iteration expressions of for loops had been omitted. Fixed thus. gcc/cp/ChangeLog: PR c++/98480 * coroutines.cc (replace_continue): Rewrite continue into 'goto label'. (await_statement_walker): Handle await expressions in the initializer, condition and iteration expressions of for loops. gcc/testsuite/ChangeLog: PR c++/98480 * g++.dg/coroutines/pr98480.C: New test. * g++.dg/coroutines/torture/co-await-24-for-init.C: New test. * g++.dg/coroutines/torture/co-await-25-for-condition.C: New test. * g++.dg/coroutines/torture/co-await-26-for-iteration-expr.C: New test.
Diffstat (limited to 'libjava')
0 files changed, 0 insertions, 0 deletions