Thread overview
[Issue 1145] New: bad codegen with ulong+float
Apr 14, 2007
d-bugmail
Apr 23, 2007
d-bugmail
Aug 05, 2010
Iain Buclaw
April 14, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1145

           Summary: bad codegen with ulong+float
           Product: DGCC aka GDC
           Version: 0.23
          Platform: Macintosh
        OS/Version: Mac OS X
            Status: NEW
          Keywords: wrong-code
          Severity: major
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn@users.sf.net
        ReportedBy: csantander619@gmail.com


This doesn't pass the assert:
//-------
ulong foo ()
{
        return cast(ulong) (cast(ulong) 1176576512 + cast(float) -2);
}

void main ()
{
        assert(foo()==1176576510);
}
//-------


-- 

April 23, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1145


thomas-dloop@kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Mac OS X                    |All
           Platform|Macintosh                   |All




------- Comment #1 from thomas-dloop@kuehne.cn  2007-04-23 12:55 -------
Added to DStress as http://dstress.kuehne.cn/compile/o/odd_bug_16_A.d http://dstress.kuehne.cn/run/o/odd_bug_16_B.d


-- 

August 05, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1145


Iain Buclaw <ibuclaw@ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Iain Buclaw <ibuclaw@ubuntu.com> 2010-08-05 14:28:02 PDT ---
Fixed in hg commit 119 / release 0.25

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