[Issue 1018] New: regression: Error: divide by 0

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 4 03:01:47 PST 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 at digitalmars.com
        ReportedBy: thomas-dloop at 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


-- 



More information about the Digitalmars-d-bugs mailing list