http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50529
--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-09-27 02:39:42 UTC --- Author: paolo Date: Tue Sep 27 02:39:34 2011 New Revision: 179234 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179234 Log: 2011-09-26 Paolo Carlini <paolo.carl...@oracle.com> PR libstdc++/50529 * include/bits/vector.tcc (vector<>::erase(iterator, iterator)): Fix to do nothing if the range is empty. * include/bits/stl_bvector.h: Likewise. * include/bits/deque.tcc: Likewise. * include/debug/vector: Adjust. * include/debug/deque: Likewise. * testsuite/23_containers/vector/modifiers/erase/50529.cc: New. * testsuite/23_containers/deque/modifiers/erase/50529.cc: Likewise. * testsuite/23_containers/deque/modifiers/erase/3.cc: Adjust. Added: trunk/libstdc++-v3/testsuite/23_containers/deque/modifiers/erase/50529.cc trunk/libstdc++-v3/testsuite/23_containers/vector/modifiers/erase/50529.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/deque.tcc trunk/libstdc++-v3/include/bits/stl_bvector.h trunk/libstdc++-v3/include/bits/vector.tcc trunk/libstdc++-v3/include/debug/deque trunk/libstdc++-v3/include/debug/vector trunk/libstdc++-v3/testsuite/23_containers/deque/modifiers/erase/3.cc