gcc/libstdc++-v3/testsuite/25_algorithms/equal
François Dumont 815eb852a2 libstdc++: Fix _GLIBCXX_DEBUG mode constexpr compatibility
The __glibcxx_check_can_[increment|decrement]_range macros are using the
_GLIBCXX_DEBUG_VERIFY_COND_AT macro which is not constexpr compliant and will produce nasty
diagnostics rather than the std::__failed_assertion dedicated to constexpr. Replace it with
correct _GLIBCXX_DEBUG_VERIFY_AT_F.

libstdc++-v3/ChangeLog:

	* include/debug/macros.h (__glibcxx_check_can_increment_range): Replace
	_GLIBCXX_DEBUG_VERIFY_COND_AT usage with _GLIBCXX_DEBUG_VERIFY_AT_F.
	(__glibcxx_check_can_decrement_range): Likewise.
	* testsuite/25_algorithms/copy_backward/constexpr.cc (test03): New.
	* testsuite/25_algorithms/copy/debug/constexpr_neg.cc: New test.
	* testsuite/25_algorithms/copy_backward/debug/constexpr_neg.cc: New test.
	* testsuite/25_algorithms/equal/constexpr_neg.cc: New test.
	* testsuite/25_algorithms/equal/debug/constexpr_neg.cc: New test.
2020-12-12 18:07:45 +01:00
..
debug libstdc++: Fix _GLIBCXX_DEBUG mode constexpr compatibility 2020-12-12 18:07:45 +01:00
deque_iterators libstdc++: Fix testcase for C++98 compatibility 2020-01-10 15:27:50 +00:00
requirements/explicit_instantiation Update copyright years. 2020-01-01 12:51:42 +01:00
1.cc Update copyright years. 2020-01-01 12:51:42 +01:00
2.cc Update copyright years. 2020-01-01 12:51:42 +01:00
94013.cc libstdc++: Workaround is_trivially_copyable<volatile T> (PR 94013) 2020-03-03 21:39:19 +00:00
95578.cc libstdc++: Fix some ranges algos optimizations [PR95578] 2020-06-10 17:37:53 -04:00
check_type2.cc Update copyright years. 2020-01-01 12:51:42 +01:00
check_type.cc Update copyright years. 2020-01-01 12:51:42 +01:00
constexpr_neg.cc libstdc++: Fix _GLIBCXX_DEBUG mode constexpr compatibility 2020-12-12 18:07:45 +01:00
constexpr.cc libstdc++: Improve tests for constexpr algorithms 2020-10-29 14:47:18 +00:00
constrained.cc libstdc++: Implement C++20 constrained algorithms 2020-02-06 20:08:34 -05:00
no_operator_ne.cc Update copyright years. 2020-01-01 12:51:42 +01:00