This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32883] Regression: reverse_iterator produces valgrind errors
- From: "Raimund dot Merkert at baesystems dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jul 2007 16:40:39 -0000
- Subject: [Bug c++/32883] Regression: reverse_iterator produces valgrind errors
- References: <bug-32883-5307@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from Raimund dot Merkert at baesystems dot com 2007-07-24 16:40 -------
If I replace *i with ++i, I get basically the same result. It has struck me as
weird that this would be the "preferred way" according to Scott Myers, but
looking at the implementation bits/stl_iterator.h, this code should definitely
not work.
So, perhaps it is not a bug after all?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32883