]> git.ipfire.org Git - thirdparty/gcc.git/commit
[C++ PATCH] Using decls
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 May 2019 14:33:24 +0000 (14:33 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 May 2019 14:33:24 +0000 (14:33 +0000)
commite7b95f8658ddef064068a5454de751755ebf35c9
tree2ef4422c1eeae7e57ee71a77da6262876febb002
parentf6baa5a200229247dac3c73ed1b5463792c95f26
[C++ PATCH] Using decls

https://gcc.gnu.org/ml/gcc-patches/2019-05/msg01396.html
gcc/cp/
* name-lookup.h (struct cp_binding_level): Drop usings field.
(finish_namespace_using_decl, finish_local_using_decl): Replace with ...
(finish_nonmember_using_decl): ... this.
* name-lookup.c (push_using_decl_1, push_using_decl):
(do_nonmember_using_decl): ... here.  Add INSERT_P arg.  Reimplement.
(validate_nonmember_using_decl, finish_namespace_using_decl)
(finish_local_using_decl): Replace with ...
(finish_nonmember_using_decl): ... this.  Drop DECL parm.
* parser.c (cp_parser_using_declaration): Don't do lookup here.
* pt.c (tsubst_expr): Do not do using decl lookup here.

gcc/testsuite/
* g++.dg/lookup/using53.C: Adjust diagnostic.

libcc1/
* libcp1plugin.cc (plugin_add_using_decl): Use
finish_nonmember_using_decl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271467 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/using53.C
libcc1/ChangeLog
libcc1/libcp1plugin.cc