re PR c++/8287 (GCC3.2: Destructor called for non-constructed local object)
authorMark Mitchell <mark@codesourcery.com>
Wed, 30 Oct 2002 00:05:36 +0000 (00:05 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 30 Oct 2002 00:05:36 +0000 (00:05 +0000)
commit5633b37c1bba472243075b894adb9a83053f4d35
tree6f208f2cba1ad94d262e56bc5066244dc0d06596
parent7deae97af8e8690f1f2af9a1466f5dd6c0f0afa3
re PR c++/8287 (GCC3.2: Destructor called for non-constructed local object)

PR c++/8287
* decl.c (finish_destructor_body): Create the label to jump to
when returning from a destructor here.
(finish_function_body): Rather than here.

PR c++/8287
* g++.dg/init/dtor2.C: New test.

From-SVN: r58643
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/init/dtor2.C [new file with mode: 0644]