www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 1145] New: bad codegen with ulong+float

reply d-bugmail puremagic.com writes:
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);
}
//-------


-- 
Apr 14 2007
next sibling parent d-bugmail puremagic.com writes:
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





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


-- 
Apr 23 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1145


Iain Buclaw <ibuclaw ubuntu.com> changed:

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



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: -------
Aug 05 2010