gcc/libstdc++-v3/include
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
..
backward Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
bits regex.h: Add/modify comments. 2014-03-15 18:16:22 +00:00
c Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
c_compatibility Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
c_global acinclude.m4 (GLIBCXX_CHECK_TMPNAM): New check for tmpnam function. 2014-01-23 21:17:15 +00:00
c_std Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
debug 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
decimal Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
experimental re PR libstdc++/59531 (string_view overrun in copy operation) 2014-01-24 20:15:00 +00:00
ext re PR libstdc++/21609 (array_allocator vs rebind & templated constructor) 2014-01-29 20:43:44 +00:00
parallel Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
precompiled Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
profile 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
std re PR libstdc++/60564 ([C++11] The std::packaged_task constructor taking a reference to a functor does not copy its argument.) 2014-03-18 16:31:38 +00:00
tr1 Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
tr2 Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
Makefile.am Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
Makefile.in Implement N3762 string_view: a non-owning reference to a string. 2013-11-16 17:44:48 +00:00