[SR-7117] Infinite Recursion in BinaryInteger between < and distance(to:) #49665
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Attachment: Download
Environment
Xcode 9.3beta
Additional Detail from JIRA
md5: 1bdd075b2d5976ac4986e66fe87b489a
Issue Description:
As of the current versions of Strideable and BinaryInteger:
BinaryInteger's default implementation of homogenous < is taken from Strideable, in which it calls distance. BinaryInteger's default implementation of distance calls < and >. So there's infinite recursion.
I guess < (and probably ==) need to be reimplemented without distance.
The text was updated successfully, but these errors were encountered: