gcc/libstdc++-v3/include
Paolo Carlini a7cee01d32 re PR libstdc++/50529 ([C++0x] std::vector::erase invokes undefined behavior with empty range)
2011-09-26  Paolo Carlini  <paolo.carlini@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.

From-SVN: r179234
2011-09-27 02:39:34 +00:00
..
backward user.cfg.in (PDF_HYPERLINKS): To NO. 2011-08-07 07:27:06 +00:00
bits re PR libstdc++/50529 ([C++0x] std::vector::erase invokes undefined behavior with empty range) 2011-09-27 02:39:34 +00:00
c PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
c_compatibility PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
c_global re PR libstdc++/48698 (gnu-versioned-namespace problems) 2011-09-27 00:02:54 +00:00
c_std cmath (fmod(_Tp, _Up)): Add. 2011-08-12 15:40:01 +00:00
debug re PR libstdc++/50529 ([C++0x] std::vector::erase invokes undefined behavior with empty range) 2011-09-27 02:39:34 +00:00
decimal PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
ext re PR libstdc++/40856 (numeric_limits not specialized for __int128_t or __uint128_t) 2011-09-19 11:52:49 +00:00
parallel user.cfg.in (PDF_HYPERLINKS): To NO. 2011-08-07 07:27:06 +00:00
precompiled stdc++.h: Add scoped_allocator. 2011-07-20 15:45:55 +00:00
profile hashtable.h (_Hashtable<>::_Hashtable(_Hashtable&&)): Remove noexcept, the move constructor allocates memory... 2011-09-01 15:45:20 +00:00
std limits.cc: Replace everywhere __int128_t -> __int128, and __uint128_t -> unsigned __int128. 2011-09-21 11:23:11 +00:00
tr1 cmath: Extend/update comment. 2011-08-18 16:56:55 +00:00
Makefile.am safe_unordered_sequence.h, [...]: Rename respectively in... 2011-07-21 19:56:36 +00:00
Makefile.in fragment.am (CONFIG_CXXFLAGS): Add -frandom-seed. 2011-07-22 13:52:51 +00:00