gcc/libstdc++-v3/include/bits
François Dumont 33a1e511b5 libstdc++: Make deque iterator operator- usable with value-init iterators
N3644 implies that operator- can be used on value-init iterators. We now return
0 if both iterators are value initialized. If only one is value initialized we
keep the UB by returning the result of a normal computation which is a meaningless
value.

libstdc++-v3/ChangeLog:

	PR libstdc++/70303
	* include/bits/stl_deque.h (std::deque<>::operator-(iterator, iterator)):
	Return 0 if both iterators are value-initialized.
	* testsuite/23_containers/deque/70303.cc: New test.
	* testsuite/23_containers/vector/70303.cc: New test.
2021-02-01 19:19:53 +01:00
..
algorithmfwd.h Update copyright years. 2021-01-04 10:26:59 +01:00
align.h Update copyright years. 2021-01-04 10:26:59 +01:00
alloc_traits.h Update copyright years. 2021-01-04 10:26:59 +01:00
allocated_ptr.h Update copyright years. 2021-01-04 10:26:59 +01:00
allocator.h Update copyright years. 2021-01-04 10:26:59 +01:00
atomic_base.h Update copyright years. 2021-01-04 10:26:59 +01:00
atomic_futex.h Update copyright years. 2021-01-04 10:26:59 +01:00
atomic_timed_wait.h Update copyright years. 2021-01-04 10:26:59 +01:00
atomic_wait.h Update copyright years. 2021-01-04 10:26:59 +01:00
basic_ios.h Update copyright years. 2021-01-04 10:26:59 +01:00
basic_ios.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
basic_string.h libstdc++: Add string contains member functions for C++2b 2021-01-27 12:37:36 +00:00
basic_string.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
boost_concept_check.h Update copyright years. 2021-01-04 10:26:59 +01:00
c++0x_warning.h Update copyright years. 2021-01-04 10:26:59 +01:00
c++config Update copyright years. 2021-01-04 10:26:59 +01:00
char_traits.h Update copyright years. 2021-01-04 10:26:59 +01:00
charconv.h Update copyright years. 2021-01-04 10:26:59 +01:00
codecvt.h Update copyright years. 2021-01-04 10:26:59 +01:00
concept_check.h Update copyright years. 2021-01-04 10:26:59 +01:00
cpp_type_traits.h Update copyright years. 2021-01-04 10:26:59 +01:00
deque.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
enable_special_members.h Update copyright years. 2021-01-04 10:26:59 +01:00
erase_if.h Update copyright years. 2021-01-04 10:26:59 +01:00
forward_list.h Update copyright years. 2021-01-04 10:26:59 +01:00
forward_list.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
fs_dir.h Update copyright years. 2021-01-04 10:26:59 +01:00
fs_fwd.h Update copyright years. 2021-01-04 10:26:59 +01:00
fs_ops.h Update copyright years. 2021-01-04 10:26:59 +01:00
fs_path.h libstdc++: Define function to throw filesystem_error [PR 98471] 2021-01-14 16:26:30 +00:00
fstream.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
functexcept.h Update copyright years. 2021-01-04 10:26:59 +01:00
functional_hash.h Update copyright years. 2021-01-04 10:26:59 +01:00
gslice_array.h Update copyright years. 2021-01-04 10:26:59 +01:00
gslice.h Update copyright years. 2021-01-04 10:26:59 +01:00
hashtable_policy.h libstdc++: Implement N3644 for _GLIBCXX_DEBUG iterators 2021-01-14 19:23:54 +01:00
hashtable.h Update copyright years. 2021-01-04 10:26:59 +01:00
indirect_array.h Update copyright years. 2021-01-04 10:26:59 +01:00
invoke.h Update copyright years. 2021-01-04 10:26:59 +01:00
ios_base.h Update copyright years. 2021-01-04 10:26:59 +01:00
istream.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
iterator_concepts.h Update copyright years. 2021-01-04 10:26:59 +01:00
list.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
locale_classes.h Update copyright years. 2021-01-04 10:26:59 +01:00
locale_classes.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
locale_conv.h Update copyright years. 2021-01-04 10:26:59 +01:00
locale_facets_nonio.h Update copyright years. 2021-01-04 10:26:59 +01:00
locale_facets_nonio.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
locale_facets.h Update copyright years. 2021-01-04 10:26:59 +01:00
locale_facets.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
localefwd.h Update copyright years. 2021-01-04 10:26:59 +01:00
mask_array.h Update copyright years. 2021-01-04 10:26:59 +01:00
max_size_type.h Update copyright years. 2021-01-04 10:26:59 +01:00
memoryfwd.h Update copyright years. 2021-01-04 10:26:59 +01:00
move.h Update copyright years. 2021-01-04 10:26:59 +01:00
node_handle.h Update copyright years. 2021-01-04 10:26:59 +01:00
ostream_insert.h Update copyright years. 2021-01-04 10:26:59 +01:00
ostream.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
parse_numbers.h Update copyright years. 2021-01-04 10:26:59 +01:00
postypes.h Update copyright years. 2021-01-04 10:26:59 +01:00
predefined_ops.h Update copyright years. 2021-01-04 10:26:59 +01:00
ptr_traits.h Update copyright years. 2021-01-04 10:26:59 +01:00
quoted_string.h Update copyright years. 2021-01-04 10:26:59 +01:00
random.h Update copyright years. 2021-01-04 10:26:59 +01:00
random.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
range_access.h Update copyright years. 2021-01-04 10:26:59 +01:00
ranges_algo.h Update copyright years. 2021-01-04 10:26:59 +01:00
ranges_algobase.h Update copyright years. 2021-01-04 10:26:59 +01:00
ranges_base.h Update copyright years. 2021-01-04 10:26:59 +01:00
ranges_cmp.h Update copyright years. 2021-01-04 10:26:59 +01:00
ranges_uninitialized.h Update copyright years. 2021-01-04 10:26:59 +01:00
ranges_util.h Update copyright years. 2021-01-04 10:26:59 +01:00
refwrap.h Update copyright years. 2021-01-04 10:26:59 +01:00
regex_automaton.h Update copyright years. 2021-01-04 10:26:59 +01:00
regex_automaton.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
regex_compiler.h Update copyright years. 2021-01-04 10:26:59 +01:00
regex_compiler.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
regex_constants.h Update copyright years. 2021-01-04 10:26:59 +01:00
regex_error.h Update copyright years. 2021-01-04 10:26:59 +01:00
regex_executor.h Update copyright years. 2021-01-04 10:26:59 +01:00
regex_executor.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
regex_scanner.h Update copyright years. 2021-01-04 10:26:59 +01:00
regex_scanner.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
regex.h Update copyright years. 2021-01-04 10:26:59 +01:00
regex.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
semaphore_base.h Update copyright years. 2021-01-04 10:26:59 +01:00
shared_ptr_atomic.h Update copyright years. 2021-01-04 10:26:59 +01:00
shared_ptr_base.h Update copyright years. 2021-01-04 10:26:59 +01:00
shared_ptr.h Update copyright years. 2021-01-04 10:26:59 +01:00
slice_array.h Update copyright years. 2021-01-04 10:26:59 +01:00
specfun.h Update copyright years. 2021-01-04 10:26:59 +01:00
sstream.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
std_abs.h Update copyright years. 2021-01-04 10:26:59 +01:00
std_function.h Update copyright years. 2021-01-04 10:26:59 +01:00
std_mutex.h Update copyright years. 2021-01-04 10:26:59 +01:00
std_thread.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_algo.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_algobase.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_bvector.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_construct.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_deque.h libstdc++: Make deque iterator operator- usable with value-init iterators 2021-02-01 19:19:53 +01:00
stl_function.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_heap.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_iterator_base_funcs.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_iterator_base_types.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_iterator.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_list.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_map.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_multimap.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_multiset.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_numeric.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_pair.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_queue.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_raw_storage_iter.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_relops.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_set.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_stack.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_tempbuf.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_tree.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_uninitialized.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_vector.h Update copyright years. 2021-01-04 10:26:59 +01:00
stream_iterator.h Update copyright years. 2021-01-04 10:26:59 +01:00
streambuf_iterator.h Update copyright years. 2021-01-04 10:26:59 +01:00
streambuf.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
string_view.tcc libstdc++: Optimize std::string_view::find [PR 66414] 2021-01-27 13:45:52 +00:00
stringfwd.h Update copyright years. 2021-01-04 10:26:59 +01:00
uniform_int_dist.h Update copyright years. 2021-01-04 10:26:59 +01:00
unique_lock.h Update copyright years. 2021-01-04 10:26:59 +01:00
unique_ptr.h Update copyright years. 2021-01-04 10:26:59 +01:00
unordered_map.h Update copyright years. 2021-01-04 10:26:59 +01:00
unordered_set.h Update copyright years. 2021-01-04 10:26:59 +01:00
uses_allocator_args.h Update copyright years. 2021-01-04 10:26:59 +01:00
uses_allocator.h Update copyright years. 2021-01-04 10:26:59 +01:00
valarray_after.h Update copyright years. 2021-01-04 10:26:59 +01:00
valarray_array.h Update copyright years. 2021-01-04 10:26:59 +01:00
valarray_array.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
valarray_before.h Update copyright years. 2021-01-04 10:26:59 +01:00
vector.tcc Update copyright years. 2021-01-04 10:26:59 +01:00