decl.c (finish_function): Undo inadvertant change in previous patch.
authorMark Mitchell <mark@markmitchell.com>
Tue, 15 Dec 1998 12:49:05 +0000 (12:49 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 15 Dec 1998 12:49:05 +0000 (12:49 +0000)
* decl.c (finish_function): Undo inadvertant change in previous
patch.

From-SVN: r24329

gcc/cp/ChangeLog
gcc/cp/decl.c

index 78658fd0169909795d05419c86b180dc0c2066f5..57d129a48aa01785a2c7b71acf48a74788e97c8b 100644 (file)
@@ -1,3 +1,8 @@
+1998-12-15  Mark Mitchell  <mark@markmitchell.com>
+
+       * decl.c (finish_function): Undo inadvertant change in previous
+       patch.
+
 1998-12-14  Mark Mitchell  <mark@markmitchell.com>
 
        * class.c (pushclass): Tweak handling of class-level bindings.
index 8940acb3ea003cdf6bc977aa2360d7960499270c..81fa59f226a9d73df839be1308ee2ff0dfbf2de3 100644 (file)
@@ -13765,13 +13765,6 @@ finish_function (lineno, flags, nested)
       expand_function_end (input_filename, lineno, 1);
     }
   
-  /* Must mark the RESULT_DECL as being in this function.  */
-  DECL_CONTEXT (DECL_RESULT (fndecl)) = fndecl;
-
-  /* Set the BLOCK_SUPERCONTEXT of the outermost function scope to point
-     to the FUNCTION_DECL node itself.  */
-  BLOCK_SUPERCONTEXT (DECL_INITIAL (fndecl)) = fndecl;
-
   /* If we're processing a template, squirrel away the definition
      until we do an instantiation.  */
   if (processing_template_decl)
@@ -13811,6 +13804,13 @@ finish_function (lineno, flags, nested)
       pop_nested_class (1);
     }
 
+  /* Must mark the RESULT_DECL as being in this function.  */
+  DECL_CONTEXT (DECL_RESULT (fndecl)) = fndecl;
+
+  /* Set the BLOCK_SUPERCONTEXT of the outermost function scope to point
+     to the FUNCTION_DECL node itself.  */
+  BLOCK_SUPERCONTEXT (DECL_INITIAL (fndecl)) = fndecl;
+
   if (!in_template)
     {
       int saved_flag_keep_inline_functions =