public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7466: gcc does not create a destructor call for a temporary
@ 2002-08-01 9:56 norbert
0 siblings, 0 replies; 3+ messages in thread
From: norbert @ 2002-08-01 9:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 7466
>Category: c++
>Synopsis: gcc does not create a destructor call for a temporary
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 01 09:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Norbert Berzen
>Release: gcc version 3.1
>Organization:
>Environment:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: /WINEXPORT/DEVEL/gcc-x.y.z/gcc-3.1/configure --prefix=/usr
Thread model: single
gcc version 3.1
>Description:
gcc does not create a destructor call for a temporary
object which has a non-trivial destructor.
When xxx.cpp is compiled using "g++ -o xxx xxx.cpp"
then only C() is called, and ~C() is not called at all.
But when xxx.cpp is compiled by "g++ -O3 -o xxx xxx.cpp"
then C() gets called once as well as ~C() gets called
once.
>How-To-Repeat:
Compile xxx.cpp by "g++ -o xxx xxx.cpp" and run the program.
Compile it by "g++ -O3 -o xxx xxx.cpp" and run the program.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="xxx.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="xxx.cpp"
LyoKICogRmlsZTogeHh4LmNwcAogKi8KCmV4dGVybiAiQyIgaW50IHByaW50ZiAoLi4uKTsKCnN0
cnVjdCBDIHsKICBDICgpIHsgcHJpbnRmICgiQyAoKVxuIik7IH0KICB+QyAoKSB7IHByaW50ZiAo
In5DICgpXG4iKTsgfQp9OwoKc3RhdGljIGNvbnN0IEMgZiAodm9pZCkKewogIHJldHVybiBDKCk7
Cn0KCnN0YXRpYyB2b2lkIGcgKEMgaW5fYykKewogIC8qIGVtcHR5ICovCn0KCmludAptYWluICgp
CnsKICBnIChmICgpKTsKICByZXR1cm4gMDsKfQoKCi8qCiAqIFRoaXMgcHJvZHVjZXMgd3Jvbmcg
Y29kZTogICAiZysrIC1vIHh4eCB4eHguY3BwIgogKgogKiBUaGF0IHByb2R1Y2VzIGNvcnJlY3Qg
Y29kZTogImcrKyAtTzMgLW8geHh4IHh4eC5jcHAiCiAqLwo=
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/7466: gcc does not create a destructor call for a temporary
@ 2002-09-16 12:19 nathan
0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2002-09-16 12:19 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, norbert
Synopsis: gcc does not create a destructor call for a temporary
State-Changed-From-To: analyzed->closed
State-Changed-By: nathan
State-Changed-When: Mon Sep 16 12:18:35 2002
State-Changed-Why:
this is fixed in CVS
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7466
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/7466: gcc does not create a destructor call for a temporary
@ 2002-09-13 14:58 nathan
0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2002-09-13 14:58 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, norbert
Synopsis: gcc does not create a destructor call for a temporary
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 14:58:45 2002
State-Changed-Why:
confirmed as aregression
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7466
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-16 19:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-01 9:56 c++/7466: gcc does not create a destructor call for a temporary norbert
2002-09-13 14:58 nathan
2002-09-16 12:19 nathan
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).