re PR c++/14724 (Destructor not called on backwards goto past initialization)
authorMark Mitchell <mark@codesourcery.com>
Tue, 30 Mar 2004 23:45:00 +0000 (23:45 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 30 Mar 2004 23:45:00 +0000 (23:45 +0000)
commitc6671cbbbc4bccc110b26c24a3eb706f596b7960
tree04761024ef3f5044d3fc69d185c9e2024ebf24a9
parent06ce772609f34249723fe45a49d9681827101aac
re PR c++/14724 (Destructor not called on backwards goto past initialization)

PR c++/14724
* decl.c (start_decl_1): Do not decide whether or not to create a
new cleanup level until after the type has been completed.

PR c++/14763
* pt.c (tsubst_default_argument): Clear current_function_decl.

PR c++/14724
* g++.dg/init/goto1.C: New test.

PR c++/14763
* g++.dg/template/defarg4.C: New test.

From-SVN: r80101
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/goto1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/defarg4.C [new file with mode: 0644]