I'm not sure why strides were not allowed in array sections: the stride is explicitly allowed by the standard from the first version where array sections were introduced. The limitation is that the stride must not be negative. Here I have added the check for a negative stride and updated the test for a zero length section to take account of the stride.
222 KiB
222 KiB