gcc/libstdc++-v3/testsuite/25_algorithms
Paolo Carlini 116a365bd4 re PR libstdc++/37547 ([c++0x] minmax with initializer_list gives incorrect results)
2008-09-17  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/37547
	* include/bits/stl_algo.h (min(initializer_list<>),
	min(initializer_list<>, Compare), max(initializer_list<>),
	max(initializer_list<>, Compare), minmax(initializer_list<>),
	minmax(initializer_list<>, Compare)): Fix return type.
	* include/bits/algorithmfwd.h: Adjust.
	* testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
	* testsuite/25_algorithms/max/requirements/explicit_instantiation/3.cc:
        Likewise.
        * testsuite/25_algorithms/max/requirements/explicit_instantiation/
        pod2.cc: Likewise.
	* testsuite/25_algorithms/min/requirements/explicit_instantiation/3.cc:
        Likewise.
        * testsuite/25_algorithms/min/requirements/explicit_instantiation/
        pod2.cc: Likewise.
	* testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
	3.cc: Likewise.
        * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
        pod2.cc: Likewise.
	* testsuite/25_algorithms/max/37547.cc: New.
	* testsuite/25_algorithms/min/37547.cc: Likewise.
	* testsuite/25_algorithms/minmax/37547.cc: Likewise.

From-SVN: r140435
2008-09-17 22:58:38 +00:00
..
adjacent_find
all_of stl_algo.h (__find_if_not, [...]): Add in C++0x, per N2666. 2008-06-25 16:39:15 +00:00
any_of stl_algo.h (__find_if_not, [...]): Add in C++0x, per N2666. 2008-06-25 16:39:15 +00:00
binary_search Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
copy 34595.C: Rename to 34595.cc. 2007-12-27 04:27:41 +00:00
copy_backward stl_algobase.h (struct __miter_base): Add. 2007-10-27 12:07:04 +00:00
copy_if stl_algo.h (__find_if_not, [...]): Add in C++0x, per N2666. 2008-06-25 16:39:15 +00:00
copy_n stl_algo.h (copy_n): Add in C++0x mode. 2008-06-29 11:08:26 +00:00
count
count_if Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
equal
equal_range Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
fill re PR libstdc++/35725 (ambiguous std::fill with character array) 2008-03-29 22:38:19 +00:00
fill_n re PR libstdc++/35725 (ambiguous std::fill with character array) 2008-03-29 22:38:19 +00:00
find
find_end Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
find_first_of Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
find_if stl_algo.h (__find_if_not, [...]): Add in C++0x, per N2666. 2008-06-25 16:39:15 +00:00
find_if_not stl_algo.h (__find_if_not, [...]): Add in C++0x, per N2666. 2008-06-25 16:39:15 +00:00
for_each/requirements/explicit_instantiation Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
generate/requirements/explicit_instantiation
generate_n/requirements/explicit_instantiation
headers re PR libstdc++/37547 ([c++0x] minmax with initializer_list gives incorrect results) 2008-09-17 22:58:38 +00:00
heap vector (insert(iterator, _Tp&&), [...]): Enable only when _Tp != bool. 2008-07-18 20:11:21 +00:00
includes Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
inplace_merge Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
is_heap stl_heap.h (__is_heap_until): Add. 2007-10-12 16:26:03 +00:00
is_heap_until stl_heap.h (__is_heap_until): Add. 2007-10-12 16:26:03 +00:00
is_partitioned stl_algo.h (is_partitioned): Add in C++0x mode. 2008-06-27 17:42:18 +00:00
is_sorted stl_algo.h (is_sorted, [...]): Add. 2007-10-14 21:17:23 +00:00
is_sorted_until stl_algo.h (is_sorted, [...]): Add. 2007-10-14 21:17:23 +00:00
iter_swap
lexicographical_compare Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
lower_bound Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
make_heap/requirements/explicit_instantiation Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
max re PR libstdc++/37547 ([c++0x] minmax with initializer_list gives incorrect results) 2008-09-17 22:58:38 +00:00
max_element Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
merge Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
min re PR libstdc++/37547 ([c++0x] minmax with initializer_list gives incorrect results) 2008-09-17 22:58:38 +00:00
min_element Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
minmax re PR libstdc++/37547 ([c++0x] minmax with initializer_list gives incorrect results) 2008-09-17 22:58:38 +00:00
minmax_element stl_algo.h (minmax, [...]): Add. 2007-11-02 15:55:32 +00:00
mismatch
move stl_algobase.h (struct __cm_assign, [...]): Add. 2007-10-19 17:04:59 +00:00
move_backward stl_algobase.h (struct __cm_assign, [...]): Add. 2007-10-19 17:04:59 +00:00
next_permutation Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
none_of stl_algo.h (__find_if_not, [...]): Add in C++0x, per N2666. 2008-06-25 16:39:15 +00:00
nth_element 2.cc: Constrain iterations when testing on a simultor. 2008-08-30 17:31:22 +00:00
partial_sort stl_heap.h (__push_heap, [...]): Use _GLIBCXX_MOVE. 2007-10-11 17:56:31 +00:00
partial_sort_copy Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
partition [multiple changes] 2007-10-07 11:14:11 +00:00
partition_copy stl_algo.h (partition_copy): Add in C++0x mode. 2008-06-26 17:55:23 +00:00
partition_point stl_algo.h (partition_point): Add in C++0x mode. 2008-06-28 22:39:59 +00:00
pop_heap/requirements/explicit_instantiation Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
prev_permutation Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
push_heap/requirements/explicit_instantiation Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
random_shuffle random_shuffle.h: (sequential_random_shuffle) Copy data back. 2008-07-09 15:26:56 +00:00
remove [multiple changes] 2007-10-07 11:14:11 +00:00
remove_copy/requirements/explicit_instantiation
remove_copy_if stl_algo.h (__find_if_not, [...]): Add in C++0x, per N2666. 2008-06-25 16:39:15 +00:00
remove_if [multiple changes] 2007-10-07 11:14:11 +00:00
replace
replace_copy
replace_copy_if Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
replace_if Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
reverse [multiple changes] 2007-10-07 11:14:11 +00:00
reverse_copy/explicit_instantiation
rotate [multiple changes] 2007-10-07 11:14:11 +00:00
rotate_copy/requirements/explicit_instantiation
search Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
search_n Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
set_difference re PR libstdc++/35541 (Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG) 2008-03-13 17:35:40 +00:00
set_intersection re PR libstdc++/34730 (Legal program doesn't compile with -D_GLIBCXX_DEBUG) 2008-01-13 01:34:58 +00:00
set_symmetric_difference Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
set_union Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
sort re PR libstdc++/35588 ([parallel mode] parallel std::sort and bind()) 2008-04-07 08:27:34 +00:00
sort_heap/requirements/explicit_instantiation Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
stable_partition Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
stable_sort Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
swap move.h (swap(_Tp (&)[_Nm], _Tp (&)[_Nm])): Add, per DR 809. 2008-06-22 13:57:06 +00:00
swap_ranges [multiple changes] 2007-10-07 11:14:11 +00:00
transform/requirements/explicit_instantiation Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
unique [multiple changes] 2007-10-07 11:14:11 +00:00
unique_copy Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00
upper_bound Fixes for --disable-libstdcxx-pch. 2007-10-06 03:06:37 +00:00