March 04, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1018

           Summary: regression: Error: divide by 0
           Product: D
           Version: 1.007
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: thomas-dloop@kuehne.cn


# const byte a = 2;
# const byte b = 0;
# const byte c = a % b;

dmd -c test.d
Error: divide by 0

The line number and file/module information is missing.

test cases: http://dstress.kuehne.cn/nocompile/o/opMod_01_A.d http://dstress.kuehne.cn/nocompile/o/opMod_01_B.d http://dstress.kuehne.cn/nocompile/o/opMod_01_C.d http://dstress.kuehne.cn/nocompile/o/opMod_01_D.d http://dstress.kuehne.cn/nocompile/o/opMod_01_E.d http://dstress.kuehne.cn/nocompile/o/opMod_01_F.d http://dstress.kuehne.cn/nocompile/o/opMod_01_G.d http://dstress.kuehne.cn/nocompile/o/opMod_01_H.d http://dstress.kuehne.cn/nocompile/int_08.d


-- 

March 12, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1018


thomas-dloop@kuehne.cn changed:

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




------- Comment #1 from thomas-dloop@kuehne.cn  2007-03-12 01:24 -------
Fixed in DMD-1.009


--