[Issue 730] New: broken operator handling of ifloat/idouble/ireal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 23 05:13:08 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=730
Summary: broken operator handling of ifloat/idouble/ireal
Product: D
Version: 0.177
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: thomas-dloop at kuehne.cn
#
# void foo(){
# ifloat f = 1.0fi;
# f *= 2.0fi; // illegal but compiles
# }
#
It looks like all arithmetic operators for imaginary types perform
insufficient type checks.
test cases:
http://dstress.kuehne.cn/nocompile/o/opAssign_21_A.d
http://dstress.kuehne.cn/nocompile/o/opAssign_21_B.d
http://dstress.kuehne.cn/nocompile/o/opAssign_21_C.d
--
More information about the Digitalmars-d-bugs
mailing list