[Issue 3173] New: assert on wrong code (double to long to int conversion)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 13 13:04:40 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3173

           Summary: assert on wrong code (double to long to int
                    conversion)
           Product: D
           Version: 2.031
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: ace17 at free.fr


void f1()
{
  double d;
  int c = cast(long)(d);
}

produces : 
dmd: mtype.c:1554: uinteger_t Type::sizemask(): Assertion `0' failed.

-- 
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