decl.c (struct binding_level): New field using_directives.
authorMartin v. Löwis <loewis@informatik.hu-berlin.de>
Sun, 12 Jul 1998 15:41:22 +0000 (11:41 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 12 Jul 1998 15:41:22 +0000 (11:41 -0400)
commitea9635c73973763d0bf639967d5ca512a7e1b121
tree351f1538419b4b23fa0eb6398277f535b5a01bd7
parent11b5139c461d247d048eb8f00e035e0293d87b13
decl.c (struct binding_level): New field using_directives.

* decl.c (struct binding_level): New field using_directives.
(push_using_decl): Not sorry anymore.
(push_using_directive): New function.
(lookup_tag): Use CP_DECL_CONTEXT to iterate.
(unqualified_namespace_lookup): New function, code from ...
(lookup_name_real): ... here.
* decl2.c (lookup_using_namespace): Pass using list instead of
initial scope.
(validate_nonmember_using_decl): New function.
(do_nonmember_using_decl): New function.
(do_toplevel_using_decl): Use them.
(do_local_using_decl): New function.
(do_using_directive): Support block-level directives.
* parse.y (simple_stmt): Support using declarations and
directives.
(namespace_qualifier, namespace_using_decl): New non-terminals.

From-SVN: r21089
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/parse.y