re PR c++/17976 (Calls the dtor twice)
authorMark Mitchell <mark@codesourcery.com>
Fri, 15 Oct 2004 04:18:01 +0000 (04:18 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 15 Oct 2004 04:18:01 +0000 (04:18 +0000)
commit745d26d9acb436b289214fbb39a75bb71e3ec054
tree11da67c5447778d35df7bb85fd7da29f96d7c5bc
parent53e782e542b3311a78d36410c9e87c34ad5717ff
re PR c++/17976 (Calls the dtor twice)

PR c++/17976
* decl.c (cp_finish_decl): Do not call expand_static_init more
than once for a single variable.

PR c++/17976
* g++.dg/init/dtor3.C: New test.

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