This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bug in =


This code fails to compile:

(define (a b)
  (if (= 2 (length b)) 2 b))

This is what happens:

(compiling bug1.scm)
Internal error while compiling bug1.scm:2
java.lang.Error: emitGotoIfCompare2: logop must be one of ifeq...ifle
        at
gnu.bytecode.CodeAttr.emitGotoIfCompare2(CodeAttr.java:1302)
        ...

If the sequence of the two arguments to = is changed it works fine.

Regards,


Are



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]