This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/32883] Regression: reverse_iterator produces valgrind errors



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]