gcc/libstdc++-v3/testsuite/23_containers/vector
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
..
allocator Update copyright years. 2021-01-04 10:26:59 +01:00
bool Update copyright years. 2021-01-04 10:26:59 +01:00
capacity Update copyright years. 2021-01-04 10:26:59 +01:00
cons Update copyright years. 2021-01-04 10:26:59 +01:00
data_access Update copyright years. 2021-01-04 10:26:59 +01:00
debug Update copyright years. 2021-01-04 10:26:59 +01:00
element_access Update copyright years. 2021-01-04 10:26:59 +01:00
ext_pointer Update copyright years. 2021-01-04 10:26:59 +01:00
modifiers Update copyright years. 2021-01-04 10:26:59 +01:00
profile
requirements Update copyright years. 2021-01-04 10:26:59 +01:00
types Update copyright years. 2021-01-04 10:26:59 +01:00
14340.cc Update copyright years. 2021-01-04 10:26:59 +01:00
15523.cc Update copyright years. 2021-01-04 10:26:59 +01:00
18604.cc Update copyright years. 2021-01-04 10:26:59 +01:00
26412-1.cc Update copyright years. 2021-01-04 10:26:59 +01:00
26412-2.cc Update copyright years. 2021-01-04 10:26:59 +01:00
40192.cc Update copyright years. 2021-01-04 10:26:59 +01:00
48101_neg.cc Update copyright years. 2021-01-04 10:26:59 +01:00
48101-2_neg.cc Update copyright years. 2021-01-04 10:26:59 +01:00
48101-3_neg.cc Update copyright years. 2021-01-04 10:26:59 +01:00
52591.cc Update copyright years. 2021-01-04 10:26:59 +01:00
58764.cc Update copyright years. 2021-01-04 10:26:59 +01:00
59829.cc Update copyright years. 2021-01-04 10:26:59 +01:00
63500.cc Update copyright years. 2021-01-04 10:26:59 +01:00
70303.cc libstdc++: Make deque iterator operator- usable with value-init iterators 2021-02-01 19:19:53 +01:00
92124.cc Update copyright years. 2021-01-04 10:26:59 +01:00
check_construct_destroy.cc Update copyright years. 2021-01-04 10:26:59 +01:00
cmp_c++20.cc Update copyright years. 2021-01-04 10:26:59 +01:00
debug_mode_requires_reallocation-1.cc Update copyright years. 2021-01-04 10:26:59 +01:00
debug_mode_requires_reallocation-2.cc Update copyright years. 2021-01-04 10:26:59 +01:00
erasure.cc Update copyright years. 2021-01-04 10:26:59 +01:00
init-list.cc Update copyright years. 2021-01-04 10:26:59 +01:00
pmr_typedefs.cc Update copyright years. 2021-01-04 10:26:59 +01:00
range_access.cc Update copyright years. 2021-01-04 10:26:59 +01:00
zero_sized_allocations.cc Update copyright years. 2021-01-04 10:26:59 +01:00