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: [email protected]
Reporter: [email protected]
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
--