* semantics.c (deferred_type_access_control): Walk the entire
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Feb 2000 22:42:07 +0000 (22:42 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Feb 2000 22:42:07 +0000 (22:42 +0000)
commite238c961c77fe8778c12739cb3d73512a06944f0
tree684bc3c3537e59eeb5cfab653c80b41fd9a188bf
parent1d974238acfb5768f0153fb73b129b5f6443df84
    * semantics.c (deferred_type_access_control): Walk the entire
        type_lookups list.
        (save_type_access_control): Rename from
        initial_deferred_type_access_control.  Just remember the value.
        (decl_type_access_control): New fn.
        (begin_function_definition): Use deferred_type_access_control, after
        we've started the function.  Set type_lookups to error_mark_node.
        * parse.y (frob_specs, fn.def1): Adjust.
        (parse_decl0, parse_field, parse_field0, parse_bitfield): New fns.
        (parse_end_decl, parse_bitfield0, parse_method): New fns.
        (fn.def2, initdcl, initdcl0_innards, nomods_initdcl0): Use them.
        (after_type_component_declarator0): Likewise.
        (after_type_component_declarator): Likewise.
        (notype_component_declarator): Likewise.
        * cp-tree.h: Adjust.

        * decl.c (redeclaration_error_message): Allow redeclaration of
        namespace-scope decls.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32059 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/parse.c
gcc/cp/parse.y
gcc/cp/search.c
gcc/cp/semantics.c