[Bug c++/91826] [8/9/10 Regression] Unexpected behavior when class defined with namespace alias
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 27 14:34:00 GMT 2020
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 <nathan@gcc.gnu.org>:
https://gcc.gnu.org/g:feaa1640b3543c7c3a1f3a788bc449a3638cb780
commit r10-6253-gfeaa1640b3543c7c3a1f3a788bc449a3638cb780
Author: Nathan Sidwell <nathan@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.
More information about the Gcc-bugs
mailing list