[Bug c++/95711] namespace alias fails inside coroutine
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jun 28 12:52:41 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95711
--- Comment #3 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:06ed4aae1c2fa84b7050a286d866db4a6def3c36
commit r11-1694-g06ed4aae1c2fa84b7050a286d866db4a6def3c36
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Sun Jun 28 12: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.
More information about the Gcc-bugs
mailing list