725 – expression.c:6516: virtual Expression* MinAssignExp::semantic(Scope*): Assertion `e2->type->isfloating()' failed.

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 725 - expression.c:6516: virtual Expression* MinAssignExp::semantic(Scope*): Assertion `e2->type->isfloating()' failed.
Summary: expression.c:6516: virtual Expression* MinAssignExp::semantic(Scope*): Assert...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Linux
: P2 normal
Assignee: Walter Bright
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
Reported: 2006年12月23日 07:08 UTC by Thomas Kühne
Modified: 2014年02月15日 13:20 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Thomas Kühne 2006年12月23日 07:08:00 UTC
(Originally reported by Thomas Kuehne <thomas-dloop@kuehne.cn> on 2005年11月02日
in news:th-0AA4B81A0D5ACA3BC73EDCE5@birke.kuehne.cn)
#
# class X{
# float a;
# }
#
# void main(){
# X x;
# float a;
#
# a -= x;
# }
#
nocompile/o/opSubAssign_18_A.d(21): Error: incompatible types for ((a) -= (x)): 'float' and 'dstress.nocompile.o.opSubAssign_18_A.X'
nocompile/o/opSubAssign_18_A.d(21): Error: 'x' is not an arithmetic type
dmd-0.177.bin: expression.c:6516: virtual Expression* MinAssignExp::semantic(Scope*): Assertion `e2->type->isfloating()' failed.
test cases:
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_A.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_B.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_C.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_D.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_E.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_F.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_G.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_H.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_I.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_J.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_K.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_L.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_M.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_N.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_O.d
http://dstress.kuehne.cn/nocompile/o/opSubAssign_18_P.d 
Comment 1 Walter Bright 2007年11月03日 21:44:15 UTC
Fixed dmd 1.023 and 2.007


AltStyle によって変換されたページ (->オリジナル) /