public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17976] New: Calls the dtor twice
@ 2004-10-13 18:38 pinskia at gcc dot gnu dot org
2004-10-13 18:41 ` [Bug c++/17976] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-13 18:38 UTC (permalink / raw)
To: gcc-bugs
extern "C" void abort();
struct A
{
static int i;
A(){}
~A(){i++;if(i>1)abort();}
};
int A::i = 0;
A a;
extern A a;
int main()
{
return 0;
}
--
Summary: Calls the dtor twice
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17976
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/17976] [3.4/4.0 Regression] Calls the dtor twice
2004-10-13 18:38 [Bug c++/17976] New: Calls the dtor twice pinskia at gcc dot gnu dot org
@ 2004-10-13 18:41 ` pinskia at gcc dot gnu dot org
2004-10-13 18:42 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-13 18:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-13 18:41 -------
Oh, it is a regression.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |gdr at gcc dot gnu dot org
Known to fail| |3.4.0 4.0.0
Known to work| |3.2.3 3.3.3
Summary|Calls the dtor twice |[3.4/4.0 Regression] Calls
| |the dtor twice
Target Milestone|--- |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17976
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/17976] [3.4/4.0 Regression] Calls the dtor twice
2004-10-13 18:38 [Bug c++/17976] New: Calls the dtor twice pinskia at gcc dot gnu dot org
2004-10-13 18:41 ` [Bug c++/17976] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-13 18:42 ` pinskia at gcc dot gnu dot org
2004-10-13 18:43 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-13 18:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-13 18:42 -------
*** Bug 17977 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |matz at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17976
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/17976] [3.4/4.0 Regression] Calls the dtor twice
2004-10-13 18:38 [Bug c++/17976] New: Calls the dtor twice pinskia at gcc dot gnu dot org
2004-10-13 18:41 ` [Bug c++/17976] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-13 18:42 ` pinskia at gcc dot gnu dot org
@ 2004-10-13 18:43 ` pinskia at gcc dot gnu dot org
2004-10-13 18:46 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-13 18:43 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC|gdr at gcc dot gnu dot org |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17976
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/17976] [3.4/4.0 Regression] Calls the dtor twice
2004-10-13 18:38 [Bug c++/17976] New: Calls the dtor twice pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-10-13 18:43 ` pinskia at gcc dot gnu dot org
@ 2004-10-13 18:46 ` pinskia at gcc dot gnu dot org
2004-10-14 12:28 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-13 18:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-13 18:46 -------
I did not know how hard it would to generate a self contained testcase which is why I had asked you file
one (I just decided to file one after I got a tescase).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-10-13 18:46:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17976
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/17976] [3.4/4.0 Regression] Calls the dtor twice
2004-10-13 18:38 [Bug c++/17976] New: Calls the dtor twice pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-10-14 12:28 ` pinskia at gcc dot gnu dot org
@ 2004-10-14 12:28 ` pinskia at gcc dot gnu dot org
2004-10-14 16:08 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-14 12:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-14 12:28 -------
*** Bug 17996 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17976
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/17976] [3.4/4.0 Regression] Calls the dtor twice
2004-10-13 18:38 [Bug c++/17976] New: Calls the dtor twice pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-10-13 18:46 ` pinskia at gcc dot gnu dot org
@ 2004-10-14 12:28 ` pinskia at gcc dot gnu dot org
2004-10-14 12:28 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-14 12:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-14 12:28 -------
>From the dup:
Mark, I just checked, the regression indeed appears with your patch
http://gcc.gnu.org/ml/gcc-cvs/2003-08/msg00621.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17976
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/17976] [3.4/4.0 Regression] Calls the dtor twice
2004-10-13 18:38 [Bug c++/17976] New: Calls the dtor twice pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-10-14 12:28 ` pinskia at gcc dot gnu dot org
@ 2004-10-14 16:08 ` mmitchel at gcc dot gnu dot org
2004-10-15 4:19 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-10-14 16:08 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17976
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/17976] [3.4/4.0 Regression] Calls the dtor twice
2004-10-13 18:38 [Bug c++/17976] New: Calls the dtor twice pinskia at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-10-14 16:08 ` mmitchel at gcc dot gnu dot org
@ 2004-10-15 4:19 ` cvs-commit at gcc dot gnu dot org
2004-10-15 4:24 ` cvs-commit at gcc dot gnu dot org
2004-10-15 4:25 ` mmitchel at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-15 4:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-10-15 04:18 -------
Subject: Bug 17976
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2004-10-15 04:18:09
Modified files:
gcc/cp : ChangeLog decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/init: dtor3.C
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4433&r2=1.4434
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1313&r2=1.1314
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4452&r2=1.4453
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/dtor3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17976
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/17976] [3.4/4.0 Regression] Calls the dtor twice
2004-10-13 18:38 [Bug c++/17976] New: Calls the dtor twice pinskia at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-10-15 4:19 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-15 4:24 ` cvs-commit at gcc dot gnu dot org
2004-10-15 4:25 ` mmitchel at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-15 4:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-10-15 04:24 -------
Subject: Bug 17976
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: mmitchel@gcc.gnu.org 2004-10-15 04:23:56
Modified files:
gcc/cp : ChangeLog decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/init: dtor3.C
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.169&r2=1.3892.2.170
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1174.2.26&r2=1.1174.2.27
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.287&r2=1.3389.2.288
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/dtor3.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17976
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/17976] [3.4/4.0 Regression] Calls the dtor twice
2004-10-13 18:38 [Bug c++/17976] New: Calls the dtor twice pinskia at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-10-15 4:24 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-15 4:25 ` mmitchel at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-10-15 4:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-10-15 04:25 -------
Fixed in GCC 3.4.3.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17976
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2004-10-15 4:25 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-13 18:38 [Bug c++/17976] New: Calls the dtor twice pinskia at gcc dot gnu dot org
2004-10-13 18:41 ` [Bug c++/17976] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-13 18:42 ` pinskia at gcc dot gnu dot org
2004-10-13 18:43 ` pinskia at gcc dot gnu dot org
2004-10-13 18:46 ` pinskia at gcc dot gnu dot org
2004-10-14 12:28 ` pinskia at gcc dot gnu dot org
2004-10-14 12:28 ` pinskia at gcc dot gnu dot org
2004-10-14 16:08 ` mmitchel at gcc dot gnu dot org
2004-10-15 4:19 ` cvs-commit at gcc dot gnu dot org
2004-10-15 4:24 ` cvs-commit at gcc dot gnu dot org
2004-10-15 4:25 ` mmitchel at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).