diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-06 06:18:18 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-06 06:18:18 +0000 |
commit | 96ff3e76bce16645cf5c448cc6330c6988f42b45 (patch) | |
tree | 5e88612cbed45100047851904e6546122dd09271 /gcc/cp/decl2.c | |
parent | 7806a559f589afcd37baf9a6140b60f86b528fd2 (diff) | |
download | gcc-96ff3e76bce16645cf5c448cc6330c6988f42b45.tar.gz |
* decl2.c (start_static_storage_duration_function): Push the
function declaration so it ends up in namespace scope.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29838 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index e128e8c6212..7b69bec0124 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2985,6 +2985,9 @@ start_static_storage_duration_function () TREE_CHAIN (initialize_p_decl) = priority_decl; DECL_ARGUMENTS (ssdf_decl) = initialize_p_decl; + /* Put the function in the global scope. */ + pushdecl (ssdf_decl); + /* Start the function itself. This is equivalent to declarating the function as: |