diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2004-01-23 22:57:07 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2004-01-23 14:57:07 -0800 |
commit | 279883ed03729e17743860a523ace3470ceb72e3 (patch) | |
tree | 6eab91f749ed269b1d645956f8385ea3a3651fb0 | |
parent | 4a374c35c85b11f634c7000a4ed2e552e6706ad8 (diff) | |
download | gcc-279883ed03729e17743860a523ace3470ceb72e3.zip gcc-279883ed03729e17743860a523ace3470ceb72e3.tar.gz gcc-279883ed03729e17743860a523ace3470ceb72e3.tar.bz2 |
re PR c++/13701 (g++.old-deja/g++.eh/cleanup2.C ICEs)
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
-rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cp/decl.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5dafab2..be30e82 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index db93277..6fa3faa 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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)); |