https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91826
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Nathan Sidwell <nat...@gcc.gnu.org>: https://gcc.gnu.org/g:feaa1640b3543c7c3a1f3a788bc449a3638cb780 commit r10-6253-gfeaa1640b3543c7c3a1f3a788bc449a3638cb780 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.