diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-20 00:48:44 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-20 00:48:44 +0000 |
commit | ce0c3b0713d93ec9aca4cad6244a75dd00b76952 (patch) | |
tree | 18750127388f053e1dd83e7ae5f29fc9e9fe0bfb /gcc/cp/decl.h | |
parent | 6e7144d52ba646d610fb87c2fced67ac3a7d7a5f (diff) | |
download | gcc-ce0c3b0713d93ec9aca4cad6244a75dd00b76952.tar.gz |
PR c++/11041
* call.c (initialize_reference): Do not use cp_finish_decl to emit
temporary variables.
* cp-tree.h (static_aggregates): Declare.
(pushdecl_top_level_and_finish): Likewise.
* decl.c (pushdecl_top_level_1): New function.
(pushdecl_top_level): Use it.
(pushdecl_top_level_and_finish): New function.
(initialize_local_var): Remove redundant code.
(cp_finish_decl): Remove support for RESULT_DECLs. Don't check
building_stmt_tree.
* decl.h (static_aggregates): Remove.
* decl2.c (get_guard): Use pushdecl_top_level_and_finish.
* rtti.c (get_tinfo_decl): Use pushdecl_top_level_and_finish.
(tinfo_base_init): Likewise.
PR c++/11041
* g++.dg/init/ref7.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68236 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.h')
-rw-r--r-- | gcc/cp/decl.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/cp/decl.h b/gcc/cp/decl.h index b942687407f..2a7a7659e1b 100644 --- a/gcc/cp/decl.h +++ b/gcc/cp/decl.h @@ -37,12 +37,6 @@ extern tree grokdeclarator (tree, tree, enum decl_context, int, tree*); or a chain or parameter decls here. */ extern GTY(()) tree last_function_parms; -/* A list of objects which have constructors or destructors - which reside in the global scope. The decl is stored in - the TREE_VALUE slot and the initializer is stored - in the TREE_PURPOSE slot. */ -extern GTY(()) tree static_aggregates; - #ifdef DEBUG_CP_BINDING_LEVELS /* Purely for debugging purposes. */ extern int debug_bindings_indentation; |