gcc/libstdc++-v3/testsuite
Jonathan Wakely fe918041ce libstdc++: Replace incorrect static assertion in std::reduce [PR95833]
The standard does not require the iterator's value type to be
convertible to the result type, it only requires that the result of
dereferencing the iterator can be passed to the binary function.

libstdc++-v3/ChangeLog:

	PR libstdc++/95833
	* include/std/numeric (reduce(Iter, Iter, T, BinaryOp)): Replace
	incorrect static_assert with ones matching the 'Mandates'
	conditions in the standard.
	* testsuite/26_numerics/reduce/95833.cc: New test.

(cherry picked from commit 0532452dcd)
2021-06-18 16:55:09 +01:00
..
17_intro libstdc++: Add explicit -std=gnu++17 option to test 2021-06-14 14:09:07 +01:00
18_support libstdc++: Remove redundant -std=gnu++17 option from remaining tests 2021-05-11 20:50:08 +01:00
19_diagnostics libstdc++: Remove redundant -std=gnu++17 option from remaining tests 2021-05-11 20:50:08 +01:00
20_util libstdc++: Fix common_reference for non-reference results [PR100894] 2021-06-14 21:34:33 +01:00
21_strings libstdc++: Suppress -Wstringop-overread warning in test 2021-06-18 11:16:58 +01:00
22_locale
23_containers libstdc++: Add feature test macro for heterogeneous lookup in unordered containers 2021-06-11 23:23:55 +01:00
24_iterators libstdc++: Implement LWG 3391 changes to move/counted_iterator::base() 2021-06-10 14:58:53 -04:00
25_algorithms libstdc++: Fix tests that fail in C++98 mode 2021-05-11 20:50:09 +01:00
26_numerics libstdc++: Replace incorrect static assertion in std::reduce [PR95833] 2021-06-18 16:55:09 +01:00
27_io libstdc++: Fix filesystem::path comparisons for C++23 2021-06-11 23:23:57 +01:00
28_regex libstdc++: Remove redundant -std=gnu++17 option from remaining tests 2021-05-11 20:50:08 +01:00
29_atomics libstd++: Only support atomic_ref::wait tests which are always lockfree 2021-06-09 13:47:15 -07:00
30_threads libstdc++: Remove redundant -std=gnu++17 option from concurrency tests 2021-05-11 20:50:07 +01:00
abi
backward
config
data
decimal
experimental libstdc++: Only run Filesystem TS test if supported 2021-06-14 15:11:27 +01:00
ext
lib testuite: fix libtdc++ libatomic flags 2021-05-28 16:52:32 -04:00
libstdc++-abi
libstdc++-dg libstdc++: Add std::experimental::simd from the Parallelism TS 2 2021-01-27 16:37:26 +00:00
libstdc++-prettyprinters libstdc++: Remove redundant -std=gnu++17 option from remaining tests 2021-05-11 20:50:08 +01:00
libstdc++-xmethods
performance
special_functions
std libstdc++: Non-triv-copyable extra args aren't simple [PR100940] 2021-06-17 22:55:34 -04:00
tr1 libstdc++: Fix some tests that fail in C++20 mode 2021-04-12 12:30:07 +01:00
tr2
util libstdc++: Avoid hard error in ranges::unique_copy [PR100770] 2021-06-10 16:59:34 -04:00
Makefile.am libstdc++: Work around test failures using -mno-tree-vrp 2021-02-03 15:49:30 +00:00
Makefile.in libstdc++: Work around test failures using -mno-tree-vrp 2021-02-03 15:49:30 +00:00