[Bug c++/94752] [coroutines] compiler ICE with coroutine with unnamed parameter
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Apr 26 19:32:23 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94752
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain D Sandoe <iains@gcc.gnu.org>:
https://gcc.gnu.org/g:29f55115583a0dab6cbac749c4f0804fd88e9536
commit r10-7973-g29f55115583a0dab6cbac749c4f0804fd88e9536
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Sun Apr 26 19:34:50 2020 +0100
coroutines: Do not assume parms are named [PR94752].
Parameters to user-defined coroutines might be unnamed.
In that case, we must synthesize a name for the coroutine
frame copy.
gcc/cp/ChangeLog:
2020-04-26 Iain Sandoe <iain@sandoe.co.uk>
PR c++/94752
* coroutines.cc (morph_fn_to_coro): Ensure that
unnamed function params have a usable and distinct
frame field name.
gcc/testsuite/ChangeLog:
2020-04-26 Iain Sandoe <iain@sandoe.co.uk>
PR c++/94752
* g++.dg/coroutines/pr94752.C: New test.
More information about the Gcc-bugs
mailing list