[C++ PATCH] namespace using directives
authorNathan Sidwell <nathan@acm.org>
Mon, 20 May 2019 12:46:54 +0000 (12:46 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 20 May 2019 12:46:54 +0000 (12:46 +0000)
commit0841bc15630c18bac94ff6ed8ba2d878d639caf6
tree30fd45fa42c65b70401f1e8101ce5b2dd80078bb
parentab904df5f9063cf3075ae20b97cf4df9e6612cc1
[C++ PATCH] namespace using directives

https://gcc.gnu.org/ml/gcc-patches/2019-05/msg01245.html
* cp-tree.h (struct lang_decl_ns): Remove usings field.
(DECL_NAMESPACE_USING): Delete.
* name-lookup.c (name_lookup::search_usings): Use namespace's
binding scope.
(name_lookup::queue_namespae): Likewise.
(finish_namespace_using_directive, push_namespace): Likewise.
(has_using_namespace_std_directive): Just search the entire
binding stack.

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