[Issue 18700] New: iota with floating type + padRigh asserts
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 31 16:03:43 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18700
Issue ID: 18700
Summary: iota with floating type + padRigh asserts
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: minor
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: santerkrupp at gmail.com
The following triggers an assertion std.range.package.d (source line 5632 for
tag 2.079.0):
iota(6.).padRight(0, 10).slide(4)
The problem occurs when:
- iota is floating type
- padRight causes padding to the original size of the iota plus the size of
the slide (e.g. 6 + 4 == 10 in the above)
--
More information about the Digitalmars-d-bugs
mailing list