gcc/libstdc++-v3/testsuite/std/ranges
Patrick Palka 83470a5cd4 libstdc++: Fix __max_diff_type::operator>>= for negative values
This patch fixes sign bit propagation when right-shifting a negative
__max_diff_type value by more than one, a bug that our existing test
coverage didn't expose until r14-159-g03cebd304955a6 fixed the front
end's 'signed typedef-name' handling that the test relies on (which is
a non-standard extension to the language grammar).

libstdc++-v3/ChangeLog:

	* include/bits/max_size_type.h (__max_diff_type::operator>>=):
	Fix propagation of sign bit.
	* testsuite/std/ranges/iota/max_size_type.cc: Avoid using the
	non-standard 'signed typedef-name'.  Add some compile-time tests
	for right-shifting a negative __max_diff_type value by more than
	one.
2023-04-24 13:39:54 -04:00
..
access Update copyright years. 2023-01-16 11:52:17 +01:00
adaptors libstdc++: Fix typo in views::as_const's operator() [PR109525] 2023-04-18 07:21:07 -04:00
cartesian_product libstdc++: Implement LWG 3820/3849 changes to cartesian_product_view 2023-03-09 13:41:03 -05:00
headers/ranges Update copyright years. 2023-01-16 11:52:17 +01:00
iota libstdc++: Fix __max_diff_type::operator>>= for negative values 2023-04-24 13:39:54 -04:00
repeat libstdc++: Implement LWG 3796 changes to repeat_/chunk_by_view [PR109024] 2023-03-09 13:37:29 -05:00
subrange Update copyright years. 2023-01-16 11:52:17 +01:00
zip libstdc++: Add feature-test macros for implemented C++23 views [PR108260] 2023-01-06 10:32:10 -05:00
zip_transform libstdc++: Implement ranges::zip_transform_view from P2321R2 2022-08-26 18:59:20 -04:00
97600.cc Update copyright years. 2023-01-16 11:52:17 +01:00
empty_view.cc Update copyright years. 2023-01-16 11:52:17 +01:00
istream_view.cc libstdc++: Make views::single/iota/istream SFINAE-friendly [PR108362] 2023-03-09 13:35:04 -05:00
p2259.cc Update copyright years. 2023-01-16 11:52:17 +01:00
p2325.cc libstdc++: Disable hosted-only tests [PR103626] 2022-10-03 15:44:01 +01:00
p2367.cc Update copyright years. 2023-01-16 11:52:17 +01:00
range.cc Update copyright years. 2023-01-16 11:52:17 +01:00
range_adaptor_closure.cc libstdc++: Implement range_adaptor_closure from P2387R3 [PR108827] 2023-04-18 07:21:13 -04:00
refinements.cc Update copyright years. 2023-01-16 11:52:17 +01:00
safe_range.cc Update copyright years. 2023-01-16 11:52:17 +01:00
safe_range_types.cc Update copyright years. 2023-01-16 11:52:17 +01:00
single_view.cc libstdc++: Make views::single/iota/istream SFINAE-friendly [PR108362] 2023-03-09 13:35:04 -05:00
sized.cc Update copyright years. 2023-01-16 11:52:17 +01:00
version_c++23.cc libstdc++: Implement range_adaptor_closure from P2387R3 [PR108827] 2023-04-18 07:21:13 -04:00
view.cc Update copyright years. 2023-01-16 11:52:17 +01:00