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++/22591] std::swap() followed by list::erase() produces incorrect list::begin()


------- Additional Comments From pcarlini at suse dot de  2005-07-22 01:24 -------
For the moment, I give up: in my opinion, a miscompilation is still the most
likely possibility. Meaningless behaviors are taking place: for instance, the
testcase passes if I exchange the arguments of swap to (my_other_list, my_list)
and of course the implementation is symmetric and nobody changed it for eons.

A last comment about mudflap. Right now, I'm not really able to make sense out of 
some of its outputs: even a single push_back() to a single list leads to errors?!?

Really, it would be great if Janis could hunt for the regression.

-- 


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


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