gcc/libstdc++-v3/testsuite/25_algorithms
Patrick Palka 7e76cef873 libstdc++: Avoid double-deref of __first in ranges::minmax [PR104858]
PR libstdc++/104858

libstdc++-v3/ChangeLog:

	* include/bits/ranges_algo.h (__minmax_fn): Avoid dereferencing
	__first twice at the start.
	* testsuite/25_algorithms/minmax/constrained.cc (test06): New test.
2022-04-15 14:41:14 -04:00
..
adjacent_find libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
advance/istreambuf_iterators Update copyright years. 2022-01-03 10:42:10 +01:00
all_of libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
any_of libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
binary_search libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
clamp libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
copy libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
copy_backward Update copyright years. 2022-01-03 10:42:10 +01:00
copy_if libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
copy_n Update copyright years. 2022-01-03 10:42:10 +01:00
count Update copyright years. 2022-01-03 10:42:10 +01:00
count_if libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
equal libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
equal_range Update copyright years. 2022-01-03 10:42:10 +01:00
fill Update copyright years. 2022-01-03 10:42:10 +01:00
fill_n Update copyright years. 2022-01-03 10:42:10 +01:00
find Update copyright years. 2022-01-03 10:42:10 +01:00
find_end libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
find_first_of libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
find_if libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
find_if_not libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
for_each libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
generate Update copyright years. 2022-01-03 10:42:10 +01:00
generate_n Update copyright years. 2022-01-03 10:42:10 +01:00
headers Update copyright years. 2022-01-03 10:42:10 +01:00
heap Update copyright years. 2022-01-03 10:42:10 +01:00
includes libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
inplace_merge Update copyright years. 2022-01-03 10:42:10 +01:00
is_heap libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
is_heap_until libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
is_partitioned libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
is_permutation libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
is_sorted libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
is_sorted_until libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
iter_swap Update copyright years. 2022-01-03 10:42:10 +01:00
lexicographical_compare libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
lexicographical_compare_three_way libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
lower_bound libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
make_heap Update copyright years. 2022-01-03 10:42:10 +01:00
max libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
max_element libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
merge Update copyright years. 2022-01-03 10:42:10 +01:00
min libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
min_element libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
minmax libstdc++: Avoid double-deref of __first in ranges::minmax [PR104858] 2022-04-15 14:41:14 -04:00
minmax_element libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
mismatch libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
move libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
move_backward libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
next_permutation Update copyright years. 2022-01-03 10:42:10 +01:00
none_of libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
nth_element libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
partial_sort libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
partial_sort_copy libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
partition libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
partition_copy libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
partition_point libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
pop_heap Update copyright years. 2022-01-03 10:42:10 +01:00
prev_permutation Update copyright years. 2022-01-03 10:42:10 +01:00
pstl Update copyright years. 2022-01-03 10:42:10 +01:00
push_heap Update copyright years. 2022-01-03 10:42:10 +01:00
random_shuffle libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
remove Update copyright years. 2022-01-03 10:42:10 +01:00
remove_copy Update copyright years. 2022-01-03 10:42:10 +01:00
remove_copy_if libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
remove_if libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
replace Update copyright years. 2022-01-03 10:42:10 +01:00
replace_copy Update copyright years. 2022-01-03 10:42:10 +01:00
replace_copy_if libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
replace_if libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
reverse Update copyright years. 2022-01-03 10:42:10 +01:00
reverse_copy Update copyright years. 2022-01-03 10:42:10 +01:00
rotate Update copyright years. 2022-01-03 10:42:10 +01:00
rotate_copy Update copyright years. 2022-01-03 10:42:10 +01:00
sample Update copyright years. 2022-01-03 10:42:10 +01:00
search libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
search_n libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
set_difference libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
set_intersection libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
set_symmetric_difference libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
set_union libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
shift_left Update copyright years. 2022-01-03 10:42:10 +01:00
shift_right Update copyright years. 2022-01-03 10:42:10 +01:00
shuffle Update copyright years. 2022-01-03 10:42:10 +01:00
sort libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
sort_heap libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
stable_partition libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
stable_sort Update copyright years. 2022-01-03 10:42:10 +01:00
swap Update copyright years. 2022-01-03 10:42:10 +01:00
swap_ranges Update copyright years. 2022-01-03 10:42:10 +01:00
transform libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
unique libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
unique_copy libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
upper_bound libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
constexpr_macro.cc Update copyright years. 2022-01-03 10:42:10 +01:00
cpp_lib_constexpr.cc Update copyright years. 2022-01-03 10:42:10 +01:00