https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91826
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-8 branch has been updated by Nathan Sidwell <nat...@gcc.gnu.org>: https://gcc.gnu.org/g:573b265dc7bbafbdef82dd7904ca429f703e1f6c commit r8-9958-g573b265dc7bbafbdef82dd7904ca429f703e1f6c Author: Nathan Sidwell <nat...@acm.org> Date: Mon Jan 27 05:49:43 2020 -0800 c++: Bogus error using namespace alias [PR91826] My changes to is_nested_namespace broke is_ancestor's use where a namespace alias might be passed in. This changes is_ancestor to look through the alias. PR c++/91826 * name-lookup.c (is_ancestor): Allow CHILD to be a namespace alias.