diff options
author | Jason Merrill <jason@casey.cygnus.com> | 2000-02-18 22:42:07 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-02-18 17:42:07 -0500 |
commit | 1f51a99218e6eb4214e6a40e9937a7cc419f1e95 (patch) | |
tree | 684bc3c3537e59eeb5cfab653c80b41fd9a188bf /gcc/cp/cp-tree.h | |
parent | 6d1e16d74e7d55c8a0d38076850356f9e83951ab (diff) | |
download | gcc-1f51a99218e6eb4214e6a40e9937a7cc419f1e95.zip gcc-1f51a99218e6eb4214e6a40e9937a7cc419f1e95.tar.gz gcc-1f51a99218e6eb4214e6a40e9937a7cc419f1e95.tar.bz2 |
semantics.c (deferred_type_access_control): Walk the entire type_lookups list.
* 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.
From-SVN: r32059
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r-- | gcc/cp/cp-tree.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 871d572..8f3408d 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -4177,9 +4177,9 @@ extern tree finish_qualified_call_expr PARAMS ((tree, tree)); extern tree finish_label_address_expr PARAMS ((tree)); extern tree finish_unary_op_expr PARAMS ((enum tree_code, tree)); extern tree finish_id_expr PARAMS ((tree)); -extern void deferred_type_access_control PARAMS ((void)); -extern void initial_deferred_type_access_control PARAMS ((tree)); -extern int begin_function_definition PARAMS ((tree, tree, tree)); +extern void save_type_access_control PARAMS ((tree)); +extern void decl_type_access_control PARAMS ((tree)); +extern int begin_function_definition PARAMS ((tree, tree)); extern tree begin_constructor_declarator PARAMS ((tree, tree)); extern tree finish_declarator PARAMS ((tree, tree, tree, tree, int)); extern void finish_translation_unit PARAMS ((void)); |