decl2.c (start_static_storage_duration_function): Push the function declaration so...
authorMark Mitchell <mark@codesourcery.com>
Wed, 6 Oct 1999 06:18:18 +0000 (06:18 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 6 Oct 1999 06:18:18 +0000 (06:18 +0000)
* decl2.c (start_static_storage_duration_function): Push the
function declaration so it ends up in namespace scope.

From-SVN: r29838

gcc/cp/ChangeLog
gcc/cp/decl2.c

index c87e517f7df33a4bcc898d7d612df245254bd82e..3eeadc9804ddc72d9e3ec069cf8eed0adcea96ea 100644 (file)
@@ -1,5 +1,8 @@
 1999-10-05  Mark Mitchell  <mark@codesourcery.com>
 
+       * decl2.c (start_static_storage_duration_function): Push the
+       function declaration so it ends up in namespace scope.
+
        * dump.c (DUMP_CHILDREN): Remove.
        (DUMP_BINFO): Adjust.
        (struct dump_node_info): Remove dump_children_p.
index e128e8c6212ca73e72cff472322cb9657c7a6c9d..7b69bec0124e986a8331c8683a96fddca9c406fc 100644 (file)
@@ -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: