gcc/libstdc++-v3/include/debug
Jonathan Wakely 72d1f255ae re PR libstdc++/60587 (debug-mode -std=c++11 vector::insert(pos, begin, end) dereferences begin too eagerly)
PR libstdc++/60587
	* include/debug/functions.h (_Is_contiguous_sequence): Define.
	(__foreign_iterator): Accept additional iterator. Do not dispatch on
	iterator category.
	(__foreign_iterator_aux2): Likewise. Add overload for iterators
	from different types of debug container. Use _Is_contiguous_sequence
	instead of is_lvalue_reference.
	(__foreign_iterator_aux3): Accept additional iterator. Avoid
	dereferencing past-the-end iterator.
	(__foreign_iterator_aux4): Use const value_type* instead of
	potentially user-defined const_pointer type.
	* include/debug/macros.h (__glibcxx_check_insert_range): Fix comment
	and pass end iterator to __gnu_debug::__foreign_iterator.
	(__glibcxx_check_insert_range_after): Likewise.
	(__glibcxx_check_max_load_factor): Fix comment.
	* include/debug/vector (_Is_contiguous_sequence): Define partial
	specializations.
	* testsuite/23_containers/vector/debug/57779_neg.cc: Remove
	-std=gnu++11 option and unused header.
	* testsuite/23_containers/vector/debug/60587.cc: New.
	* testsuite/23_containers/vector/debug/60587_neg.cc: New.

From-SVN: r208755
2014-03-21 18:54:06 +00:00
..
array Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
bitset Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
debug.h Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
deque re PR libstdc++/58764 ([lwg/2193] error: converting to ‘const std::vector<std::basic_string<char> >’ from initializer list would use explicit constructor) 2014-01-22 19:46:44 +00:00
formatter.h Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
forward_list re PR libstdc++/60499 (non-reserved name in <debug/vector>) 2014-03-11 17:16:41 +00:00
functions.h re PR libstdc++/60587 (debug-mode -std=c++11 vector::insert(pos, begin, end) dereferences begin too eagerly) 2014-03-21 18:54:06 +00:00
list re PR libstdc++/58764 ([lwg/2193] error: converting to ‘const std::vector<std::basic_string<char> >’ from initializer list would use explicit constructor) 2014-01-22 19:46:44 +00:00
macros.h re PR libstdc++/60587 (debug-mode -std=c++11 vector::insert(pos, begin, end) dereferences begin too eagerly) 2014-03-21 18:54:06 +00:00
map Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
map.h re PR libstdc++/60499 (non-reserved name in <debug/vector>) 2014-03-11 17:16:41 +00:00
multimap.h re PR libstdc++/60499 (non-reserved name in <debug/vector>) 2014-03-11 17:16:41 +00:00
multiset.h re PR libstdc++/60499 (non-reserved name in <debug/vector>) 2014-03-11 17:16:41 +00:00
safe_base.h re PR libstdc++/59548 (Abort after copying std::unordered_map in debug mode) 2014-01-24 20:08:20 +00:00
safe_iterator.h Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
safe_iterator.tcc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
safe_local_iterator.h re PR libstdc++/56267 (unordered containers require Assignable hash function) 2014-01-20 15:49:39 +00:00
safe_local_iterator.tcc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
safe_sequence.h Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
safe_sequence.tcc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
safe_unordered_base.h re PR libstdc++/59548 (Abort after copying std::unordered_map in debug mode) 2014-01-24 20:08:20 +00:00
safe_unordered_container.h Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
safe_unordered_container.tcc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
set Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
set.h re PR libstdc++/60499 (non-reserved name in <debug/vector>) 2014-03-11 17:16:41 +00:00
string Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
unordered_map re PR libstdc++/60499 (non-reserved name in <debug/vector>) 2014-03-11 17:16:41 +00:00
unordered_set re PR libstdc++/60499 (non-reserved name in <debug/vector>) 2014-03-11 17:16:41 +00:00
vector re PR libstdc++/60587 (debug-mode -std=c++11 vector::insert(pos, begin, end) dereferences begin too eagerly) 2014-03-21 18:54:06 +00:00