gcc/libstdc++-v3/testsuite/std
Patrick Palka 96abc82224 libstdc++: Implement LWG 3820/3849 changes to cartesian_product_view
The LWG 3820 testcase revealed a bug in _M_advance, which this patch
also fixes.

libstdc++-v3/ChangeLog:

	* include/std/ranges
	(cartesian_product_view::_Iterator::_Iterator): Remove
	constraint on default constructor as per LWG 3849.
	(cartesian_product_view::_Iterator::_M_prev): Adjust position
	of _Nm > 0 test as per LWG 3820.
	(cartesian_product_view::_Iterator::_M_advance): Perform bounds
	checking only on sized cartesian products.
	* testsuite/std/ranges/cartesian_product/1.cc (test08): New test.
2023-03-09 13:41:03 -05:00
..
concepts Update copyright years. 2023-01-16 11:52:17 +01:00
format libstdc++: Reorder dg-options before dg-do 2023-02-24 14:18:35 +00:00
ranges libstdc++: Implement LWG 3820/3849 changes to cartesian_product_view 2023-03-09 13:41:03 -05:00
time libstdc++: Make std::chrono::current_zone() default to UTC 2023-03-01 21:26:08 +00:00