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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 23 05:08:01 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=725

           Summary: expression.c:6516: virtual Expression*
                    MinAssignExp::semantic(Scope*): Assertion `e2->type-
                    >isfloating()' failed.
           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


(Originally reported by Thomas Kuehne <thomas-dloop at kuehne.cn> on 2005-11-02
in news:th-0AA4B81A0D5ACA3BC73EDCE5 at 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


-- 



More information about the Digitalmars-d-bugs mailing list