digitalmars.D.bugs - [Issue 16356] New: cdouble is broken
- via Digitalmars-d-bugs (47/47) Aug 06 2016 https://issues.dlang.org/show_bug.cgi?id=16356
https://issues.dlang.org/show_bug.cgi?id=16356 Issue ID: 16356 Summary: cdouble is broken Product: D Version: D2 Hardware: x86_64 OS: All Status: NEW Severity: critical Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: enjouzensyou.boinc gmail.com OK: ------------------------------------ import std.stdio; /* 0+0i 1+1i 2+2i 3+3i */ void main() { cfloat c = 1f + 1fi; foreach(x; 0 .. 4) writeln(c * x); } ------------------------------------ NG: ------------------------------------ import std.stdio; /* 0+1i 1+1i 2+1i 3+1i */ void main() { cdouble c = 1 + 1i; foreach(x; 0 .. 4) writeln(c * x); } ------------------------------------ dmd: 2.071.1 --
Aug 06 2016