re PR c++/13701 (g++.old-deja/g++.eh/cleanup2.C ICEs)
authorAndrew Pinski <pinskia@physics.uc.edu>
Fri, 23 Jan 2004 22:57:07 +0000 (22:57 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Fri, 23 Jan 2004 22:57:07 +0000 (14:57 -0800)
2004-01-23  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/13701
        * decl.c (finish_function): Move the call to
        finish_fname_decls below the call to
        finish_eh_spec_block.

From-SVN: r76464

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

index 5dafab2f5d910542dcf875eb5ebc35b620e96c89..be30e8228bda33df32cbe9358d4c0abb4bafb3d2 100644 (file)
@@ -1,3 +1,10 @@
+2004-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR c++/13701
+       * decl.c (finish_function): Move the call to
+       finish_fname_decls below the call to
+       finish_eh_spec_block.
+
 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
 
        * optimize.c, typeck2.c: Update copyright.
index db93277a592ac327cdf9f85c9db9b1b9ef3bf939..6fa3faac36e37dddd328a8dd30800708f3a19ddc 100644 (file)
@@ -10736,8 +10736,6 @@ finish_function (int flags)
       which then got a warning when stored in a ptr-to-function variable.  */
 
   my_friendly_assert (building_stmt_tree (), 20000911);
-
-  finish_fname_decls ();
   
   /* For a cloned function, we've already got all the code we need;
      there's no need to add any extra bits.  */
@@ -10762,6 +10760,8 @@ finish_function (int flags)
                              current_eh_spec_block);
     }
 
+  finish_fname_decls ();
+
   /* If we're saving up tree structure, tie off the function now.  */
   finish_stmt_tree (&DECL_SAVED_TREE (fndecl));