public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/3948: Two destructors are called when no copy destructor is defined
@ 2002-03-18  3:41 jason
  0 siblings, 0 replies; 4+ messages in thread
From: jason @ 2002-03-18  3:41 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jason, ksingh

Synopsis: Two destructors are called when no copy destructor is defined

State-Changed-From-To: analyzed->closed
State-Changed-By: jason
State-Changed-When: Mon Mar 18 03:41:50 2002
State-Changed-Why:
    Fixed for 3.1 by
    
            PR c++/3948 -- C++ ABI change, followup to 2001-12-18 patch.
            * class.c (finish_struct_bits): Also set TREE_ADDRESSABLE for a
            type with a nontrivial destructor.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3948


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/3948: Two destructors are called when no copy destructor is defined
@ 2002-03-17 16:22 jason
  0 siblings, 0 replies; 4+ messages in thread
From: jason @ 2002-03-17 16:22 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gdr, jason, ksingh

Synopsis: Two destructors are called when no copy destructor is defined

Responsible-Changed-From-To: gdr->jason
Responsible-Changed-By: jason
Responsible-Changed-When: Sun Mar 17 16:22:44 2002
Responsible-Changed-Why:
    me

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3948


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/3948: Two destructors are called when no copy destructor is defined
@ 2001-08-13  4:16 gdr
  0 siblings, 0 replies; 4+ messages in thread
From: gdr @ 2001-08-13  4:16 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gdr, ksingh, nobody

Synopsis: Two destructors are called when no copy destructor is defined

Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: gdr
Responsible-Changed-When: Mon Aug 13 04:16:09 2001
Responsible-Changed-Why:
    Boo!
State-Changed-From-To: open->analyzed
State-Changed-By: gdr
State-Changed-When: Mon Aug 13 04:16:09 2001
State-Changed-Why:
    Confirmed as a horrible bug in GCC-3.0. A regression over 2.95

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3948&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* c++/3948: Two destructors are called when no copy destructor is defined
@ 2001-08-05 21:06 ksingh
  0 siblings, 0 replies; 4+ messages in thread
From: ksingh @ 2001-08-05 21:06 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3948
>Category:       c++
>Synopsis:       Two destructors are called when no copy destructor is defined
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 05 21:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Kalvinder Singh
>Release:        GCC-3.0
>Organization:
>Environment:
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ../configure
Thread model: single
gcc version 3.0
>Description:
Quote from Nathan Sidwell

in main, we copy construct two C objects during the call to Foo.
Foo gets one of these by value, which is dtor'd in Foo. upon return
we dtor the other one. I think this is a problem with the pass-by-value
ABI method. It does look like a bug.

End Quote

>How-To-Repeat:
Compile and run the attached program
>Fix:
None
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="kulvinder.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="kulvinder.C"

CgojaW5jbHVkZSA8c3RkaW8uaD4KCmNsYXNzIEMKewogIGludCBtOwogIApwdWJsaWM6CiAgQygp
IHtwcmludGYgKCJjdG9yICVzICVwXG4iLCBfX1BSRVRUWV9GVU5DVElPTl9fLCAodm9pZCAqKXRo
aXMpO307CiAgfkMoKSB7cHJpbnRmICgiZHRvciAlcyAlcFxuIiwgX19QUkVUVFlfRlVOQ1RJT05f
XywgKHZvaWQgKil0aGlzKTt9Owp9OwoKCnZvaWQgRm9vIChDIGMpIHtwcmludGYgKCJpbiBGb28g
JXBcbiIsICh2b2lkICopJmMpO30KCmludCBtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pCnsg
ICAgICAgCiAgQyBjOwoKICBwcmludGYgKCJCZWZvcmUgRm9vIGluIG1haW4gXG4iKTsKICBGb28g
KGMpOwogIHByaW50ZiAoIkFmdGVyIEZvbyBpbiBtYWluIFxuIik7CiAgcmV0dXJuIDE7Cn0K


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-03-18 11:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-18  3:41 c++/3948: Two destructors are called when no copy destructor is defined jason
  -- strict thread matches above, loose matches on Subject: below --
2002-03-17 16:22 jason
2001-08-13  4:16 gdr
2001-08-05 21:06 ksingh

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).