This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13865] [tree-ssa] dtor runs prematurely for loop-scoped variable
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2004 15:41:54 -0000
- Subject: [Bug c++/13865] [tree-ssa] dtor runs prematurely for loop-scoped variable
- References: <20040126062654.13865.bryner@brianryner.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-01-27 15:41 -------
The example in comment #4 is not a very good one, since the variable
"a" is only live in the first part of the for-statement. It could thus
legitimitaly be destroyed even before the first iteration. That wasn't
the case with the first example, though.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13865