https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91826
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Nathan Sidwell <nat...@gcc.gnu.org>: https://gcc.gnu.org/g:2ceb5aba64e587f8ce66bec3c9af1f2cf60effa0 commit r9-8181-g2ceb5aba64e587f8ce66bec3c9af1f2cf60effa0 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.