[Bug 192303] C++11 std::list<>::remove_if() visits elements multiple times
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Aug 1 10:52:40 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192303
--- Comment #2 from kamikaze at bsdforen.de ---
Just built it using gcc49: gcc version 4.9.2 20140723 (prerelease) (FreeBSD
Ports Collection)
It produces the expected output:
# ./main
Initial list: 0 1 2 3 4 5 6 7 8 9
Remove odd numbers ...
| val | remove
|-----|--------
| 0 |
| 1 | X
| 2 |
| 3 | X
| 4 |
| 5 | X
| 6 |
| 7 | X
| 8 |
| 9 | X
Updated list: 0 2 4 6 8
Visits: 10
I also got independent confirmation of the issue:
https://www.bsdforen.de/threads/c-11-bug-unter-freebsd-10.31225/
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list