public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13865] New: dtor runs prematurely for loop-scoped variable
@ 2004-01-26  6:26 bryner at brianryner dot com
  2004-01-26  6:29 ` [Bug c++/13865] " bryner at brianryner dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: bryner at brianryner dot com @ 2004-01-26  6:26 UTC (permalink / raw)
  To: gcc-bugs

For a variable declared in the initializer of a for loop, the destructor of the
object runs prior to the first iteration of the loop.  This is incorrect -- the
dtor should run only when exiting the loop's scope.

-- 
           Summary: dtor runs prematurely for loop-scoped variable
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bryner at brianryner dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13865


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

end of thread, other threads:[~2004-01-30 10:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-26  6:26 [Bug c++/13865] New: dtor runs prematurely for loop-scoped variable bryner at brianryner dot com
2004-01-26  6:29 ` [Bug c++/13865] " bryner at brianryner dot com
2004-01-26  6:36 ` bryner at brianryner dot com
2004-01-26 13:10 ` [Bug c++/13865] [tree-ssa] " pinskia at gcc dot gnu dot org
2004-01-26 14:52 ` bangerth at dealii dot org
2004-01-26 23:49 ` bryner at brianryner dot com
2004-01-27  0:00 ` pinskia at gcc dot gnu dot org
2004-01-27 15:41 ` bangerth at dealii dot org
2004-01-29  1:43 ` rth at gcc dot gnu dot org
2004-01-30  4:35 ` cvs-commit at gcc dot gnu dot org
2004-01-30  4:35 ` cvs-commit at gcc dot gnu dot org
2004-01-30 10:56 ` giovannibajo at libero dot it

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