[Bug c++/95711] namespace alias fails inside coroutine
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 30 12:46:33 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95711
--- Comment #4 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:65025a6dae4b2c62ca79d2d0687229dafa93af7f
commit r10-8395-g65025a6dae4b2c62ca79d2d0687229dafa93af7f
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Tue Jun 30 08:29:11 2020 +0100
coroutines: Handle namespaces while scanning local vars [PR95711].
We need to skip past namespace decls when scanning the bind
expression var lists checking for local vars.
gcc/cp/ChangeLog:
PR c++/95711
* coroutines.cc (register_local_var_uses): Skip past
namespace decls.
gcc/testsuite/ChangeLog:
PR c++/95711
* g++.dg/coroutines/pr95711.C: New test.
(cherry picked from commit 06ed4aae1c2fa84b7050a286d866db4a6def3c36)
More information about the Gcc-bugs
mailing list