public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5958: Multiple calls to destructor of local objects, inside a for-loop
@ 2002-07-11  8:15 lerdsuwa
  0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-07-11  8:15 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, smadhavan, vatsan

Synopsis: Multiple calls to destructor of local objects, inside a for-loop

State-Changed-From-To: open->feedback
State-Changed-By: lerdsuwa
State-Changed-When: Thu Jul 11 08:15:50 2002
State-Changed-Why:
    The testcase is missing from this bug report.  Could
    you please mail me the testcase again?

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


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

* Re: c++/5958: Multiple calls to destructor of local objects, inside a for-loop
@ 2003-01-03 20:02 paolo
  0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2003-01-03 20:02 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, smadhavan, vatsan

Synopsis: Multiple calls to destructor of local objects, inside a for-loop

State-Changed-From-To: feedback->closed
State-Changed-By: paolo
State-Changed-When: Fri Jan  3 12:02:24 2003
State-Changed-Why:
    No feedback after 6 months.

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


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

* c++/5958: Multiple calls to destructor of local objects, inside a for-loop
@ 2002-03-13 22:06 smadhavan
  0 siblings, 0 replies; 3+ messages in thread
From: smadhavan @ 2002-03-13 22:06 UTC (permalink / raw)
  To: gcc-gnats; +Cc: vatsan


>Number:         5958
>Category:       c++
>Synopsis:       Multiple calls to destructor of local objects, inside a for-loop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 13 22:06:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Srivathsan Madhavan
>Release:        GCC ver. 3.0.3
>Organization:
>Environment:
Cygwin 1.3.9-1, Windows NT 4 SP6a, Intel PIII
>Description:
An extra call(s) to the destructor is made during object destruction of local objects (inside the loop).  This could be understood by compiling and executing the C++ Program attached.  The behaviour of the executable (created by g++) was compared with that created by Borlad C++ ver. 5.5.1 (bcc32) for Win32.  I feel what the Borland Compiler is doing is right.
>How-To-Repeat:
Just compile the attached source code file with G++ and Borland's bcc32 (ver. 5.5.1).  Execute the 2 EXEs and you will see the difference.  For convenience I have given the outputs of the 2 EXEs in a comment block at the end of the source code.
>Fix:
-?-
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-01-03 20:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-11  8:15 c++/5958: Multiple calls to destructor of local objects, inside a for-loop lerdsuwa
  -- strict thread matches above, loose matches on Subject: below --
2003-01-03 20:02 paolo
2002-03-13 22:06 smadhavan

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