www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8989] New: cfloat argument passing broken

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: fawzi gmx.ch



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: -------
Nov 09 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8989


Fawzi Mohamed <fawzi gmx.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code



this was with D 2.060

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 09 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8989


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
            Version|D2                          |D1 & D2
         Resolution|                            |FIXED



This was actually a regression. It worked in 1.074, failed in 1.075, and was
fixed in 1.076. The fix was part of the cleanup of two-register arguments.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 04 2013