[SR-13883] StrideToIterator and StrideThroughIterator are broken #56281
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: 2985aea46af20ed17bd5219fe464794f
duplicates:
relates to:
Issue Description:
These crash:
let a = Array(stride(from: 0, through: Int8.max, by: 3))
let b = Array(stride(from: 0, to: Int8.max, by: 3))
Both
struct StrideToIterator<Element: Strideable>
andstruct StrideThroughIterator<Element: Strideable> are broken
. The latter could be fixed thanks for having internal_didReturnEnd
property. But forstruct StrideToIterator<Element: Strideable>
which doesn't have such property, I don't see a nice way to fix this bug. Both these structs are frozen.This PR #34845 extends validation test to show bug.
The text was updated successfully, but these errors were encountered: