← Back to index
|
Original Bugzilla link
Bug 739 – incorrect opMulAssign/opDivAssign evaluation for imaginary types
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2006-12-25T06:26:00Z
Last change time
2015-06-09T05:14:46Z
Keywords
wrong-code
Assigned to
dvdfrdmn
Creator
thomas-dloop
Comments
Comment #0
by thomas-dloop — 2006-12-25T06:26:44Z
# # void main(){ # ifloat i = 2.0fi; # i *= 4.0f; # # assert(i == 8.0fi); # } # The assert fails because i equals 0.0fi. test cases:
http://dstress.kuehnne.cn/run/o/opMulAssign_12.d
http://dstress.kuehnne.cn/run/o/opMulAssign_13.d
http://dstress.kuehnne.cn/run/o/opMulAssign_14.d
http://dstress.kuehnne.cn/run/o/opDivAssign_12.d
http://dstress.kuehnne.cn/run/o/opDivAssign_13.d
http://dstress.kuehnne.cn/run/o/opDivAssign_14.d
Comment #1
by smjg — 2007-09-18T15:29:08Z
Please remember to assign keywords to bug reports. To everybody reading this: Please look through issues you've reported and check for missing keywords.
Comment #2
by dvdfrdmn — 2007-09-23T18:35:04Z
Fixed in svn rev 166 / release 0.25