Re: [PATCH] libstdc++: Fix subrange::advance and subrange::prev (LWG 3433)

2020-04-28 Thread Jonathan Wakely via Gcc-patches
On 27/04/20 17:34 -0400, Patrick Palka via Libstdc++ wrote: This implements the proposed resolution of LWG 3433, which fixes subrange::advance when called with a negative argument. Tested on x86_64-pc-linux-gnu, does this look OK to commit? libstdc++-v3/ChangeLog: LWG 3433 subrange::ad

[PATCH] libstdc++: Fix subrange::advance and subrange::prev (LWG 3433)

2020-04-27 Thread Patrick Palka via Gcc-patches
This implements the proposed resolution of LWG 3433, which fixes subrange::advance when called with a negative argument. Tested on x86_64-pc-linux-gnu, does this look OK to commit? libstdc++-v3/ChangeLog: LWG 3433 subrange::advance(n) has UB when n < 0 * include/std/ranges (subra