name-lookup.h (parse_using_directive): Replace with ...
authorNathan Sidwell <nathan@acm.org>
Mon, 22 May 2017 16:00:35 +0000 (16:00 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 22 May 2017 16:00:35 +0000 (16:00 +0000)
commit65cc14079e114bbc95843b11343aae6507ef2088
tree4858d389a0129aa43164c26a93acbfa89e0b1404
parent27d020cf7db55e3cc9517a8bc79e14644f54bd5a
name-lookup.h (parse_using_directive): Replace with ...

* name-lookup.h (parse_using_directive): Replace with ...
(finish_namespace_using_directive): ... this and ...
(finish_local_using_directive): ... this.
* name-lookup.c (add_using_namespace_1): Move later.
(add_using_namespace): Move later, add namespace_p arg, remove
indirect arg.
(push_using_directive_1): Directly recurse.
(do_using_directive, parse_using_directive): Delete, split into
...
(finish_namespace_using_directive): ... this and ...
(finish_local_using_directive): ... this.
(push_namespace): Use add_using_namespace.
* parser.c (cp_parser_using_directive): Call
finish_namespace_using_directive or finish_local_using_directive.
* pt.c (tsubst_expr): Call finish_local_using_directive.

From-SVN: r248337
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/strong-using.C [new file with mode: 0644]