Thread overview
[Issue 18227] Assertion failure in iota for floating point
Sep 08, 2019
Berni
Dec 03, 2019
berni44
Mar 20, 2021
Berni44
Dec 17, 2022
Iain Buclaw
September 08, 2019
https://issues.dlang.org/show_bug.cgi?id=18227

Berni <dlang@croco-puzzle.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dlang@croco-puzzle.com

--- Comment #1 from Berni <dlang@croco-puzzle.com> ---
While looking at that problem, I found some related problems:

------

iota(-5.0,double.max,1.0)

leeds to "Conversion positive overflow", due to end-start = +infinity

------

iota(0.0,1e30,1.0);

leeds to "Conversion positive overflow", due to 1e30 > long.max

------

import std.math: nextUp;
iota(0.0,1.0,nextUp(0.0));

leeds to "Conversion positive overflow", due to > long.max potential elements

------

iota(1,1+2*float.epsilon,float.epsilon/4)

Works at the moment, but might lead to an endless loop, depending on the bugfix.

--
December 03, 2019
https://issues.dlang.org/show_bug.cgi?id=18227

berni44 <bugzilla@d-ecke.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@d-ecke.de

--- Comment #2 from berni44 <bugzilla@d-ecke.de> ---
See https://forum.dlang.org/thread/cqcyupjpuheyctedpljm@forum.dlang.org for some discussion on this.

--
March 20, 2021
https://issues.dlang.org/show_bug.cgi?id=18227

Berni44 <bugzilla@bernis-buecher.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@bernis-buecher.de

--- Comment #3 from Berni44 <bugzilla@bernis-buecher.de> ---
I discovered an old PR, trying to fix this: https://github.com/dlang/phobos/pull/6027

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=18227

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--