diff options
author | Martin v. Löwis <loewis@informatik.hu-berlin.de> | 1998-07-12 11:41:22 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-07-12 11:41:22 -0400 |
commit | ea9635c73973763d0bf639967d5ca512a7e1b121 (patch) | |
tree | 351f1538419b4b23fa0eb6398277f535b5a01bd7 /gcc/expr.c | |
parent | 11b5139c461d247d048eb8f00e035e0293d87b13 (diff) | |
download | gcc-ea9635c73973763d0bf639967d5ca512a7e1b121.zip gcc-ea9635c73973763d0bf639967d5ca512a7e1b121.tar.gz gcc-ea9635c73973763d0bf639967d5ca512a7e1b121.tar.bz2 |
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
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions