]> git.ipfire.org Git - thirdparty/gcc.git/commit
coroutines: Allow parameter packs in co_await/yield expressions [PR95345]
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 3 Jun 2020 08:03:22 +0000 (09:03 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 3 Jun 2020 19:23:59 +0000 (20:23 +0100)
commitcf7eac5805e714c7e71b699329e2c4f4a88addc1
treefc58d64b47f4c023670d0c8de19eb9f5c6596f88
parentb19d8aac15649f31a7588b2634411a1922906ea8
coroutines: Allow parameter packs in co_await/yield expressions [PR95345]

This corrects a pasto, where I copied the constraint on bare
parameter packs from the co_return to co_yield/await without
properly reviewing it.

gcc/cp/ChangeLog:

PR c++/95345
* coroutines.cc (finish_co_await_expr): Revise to allow for
parameter packs.
(finish_co_yield_expr): Likewise.

gcc/testsuite/ChangeLog:

PR c++/95345
* g++.dg/coroutines/pr95345.C: New test.
gcc/cp/coroutines.cc
gcc/testsuite/g++.dg/coroutines/pr95345.C [new file with mode: 0644]