[Bug c++/95345] Fold expressions don't work properly when pack expression has co_await
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 9 20:38:51 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95345
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Iain D Sandoe
<iains@gcc.gnu.org>:
https://gcc.gnu.org/g:57ae358584f402145bad6fede8c539a225f90966
commit r10-8266-g57ae358584f402145bad6fede8c539a225f90966
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Tue Jun 9 11:44:21 2020 +0100
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.
(cherry picked from commit cf7eac5805e714c7e71b699329e2c4f4a88addc1)
More information about the Gcc-bugs
mailing list