← Back to index
|
Original Bugzilla link
Bug 1018 – regression: Error: divide by 0
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-03-04T05:01:00Z
Last change time
2014-02-16T15:22:25Z
Keywords
diagnostic
Assigned to
bugzilla
Creator
thomas-dloop
Comments
Comment #0
by thomas-dloop — 2007-03-04T05:01:38Z
# 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
Comment #1
by thomas-dloop — 2007-03-12T01:24:08Z
Fixed in DMD-1.009