[Issue 8989] New: cfloat argument passing broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 9 15:34:23 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8989
Summary: cfloat argument passing broken
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: fawzi at gmx.ch
--- Comment #0 from Fawzi Mohamed <fawzi at gmx.ch> 2012-11-09 15:34:21 PST ---
It seems that while D2 does not have Issue 8294 it has another problem with
complex arguments:
---------
module t9;
extern(C) int printf(const(char)*,...);
void f(cdouble x,cdouble y,double m){
printf("%g %g*1i %g %g*1i %g\n",x.re,x.im,y.re,y.im,m);
assert(x.im==y.im); // fails, y.im == x.re...
}
int main(immutable(char)[][] args){
cdouble a=1.2+3.0*1i;
f(a,a,0.88);
return 0;
}
---------
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list