cp-tree.h (SCOPE_DEPTH): New.
authorNathan Sidwell <nathan@acm.org>
Tue, 16 May 2017 11:32:40 +0000 (11:32 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 16 May 2017 11:32:40 +0000 (11:32 +0000)
commit322763f5df41223003720e8333c011b953bc1b4f
treee7909fa2339db555bb0f5e64f7841591c5fff828
parent51f01fc387a2fb580108ccb27f945ee4bd1cfd34
cp-tree.h (SCOPE_DEPTH): New.

* cp-tree.h (SCOPE_DEPTH): New.
* name-lookup.h (is_nested_namespace): Declare.
* name-lookup.c (is_nested_namespace): New.
(is_ancestor): Use it.
(set_decl_namespace): Likewise.
(push_namespace): Set SCOPE_DEPTH.
* pt.c (check_specialization_namespace): Use is_nested_namespace.
(check_unqualigied_spec_or_inst): Likewise.

From-SVN: r248095
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/cp/pt.c