bugKawa - Bugs: bug #14697, Error using :: <int>

 
 

bug #14697: Error using :: <int>

Submitter:  Gerardo Horvilleur <mago>
Submitted:  Mon 03 Oct 2005 04:32:30 PM UTC
   
 
Category:  Code generation Severity:  3 - Normal
Item Group:  Compile-time exception Status:  Fixed
Privacy:  Public Assigned to:  bothner
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 11 Feb 2006 01:45:35 AM UTC, comment #1: 

I checked in patches to handle.
I also checked in a testcase based on your bug report.  Thanks!

Per Bothner <bothner>
Group administrator
Mon 03 Oct 2005 04:32:30 PM UTC, original submission:  

I am using the latest Kawa from CVS.

When trying to execute/compile:

let ((GS.261 :: <int> 10)
      (GS.262 :: <int> 1))
  (do ((i :: <int> 1 (+ i GS.262)))
      ((> i GS.261))
    (display i)))

I get this stack trace:

#|kawa:1|# /Users/mago/src/kawa/Toolkit/src/com/ienjinia/toolkit/x.scm:3:3: internal
compile error - caught java.lang.Error: invalid types to emitGotoIfCompare2
java.lang.Error: invalid types to emitGotoIfCompare2
at gnu.mapping.WrappedException.wrapIfNeeded(WrappedException.java:104)
at gnu.expr.Compilation.compile(Compilation.java:922)
at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:61)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:162)
at kawa.Shell.run(Shell.java:229)
at kawa.standard.load.loadSource(load.java:149)
at kawa.standard.load.loadSource(load.java:119)
at kawa.standard.load.apply(load.java:225)
at kawa.standard.load.apply2(load.java:188)
at kawa.standard.load.apply1(load.java:178)
at gnu.mapping.Procedure.apply(Procedure.java:133)
at gnu.mapping.Procedure.apply(Procedure.java:116)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:251)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:222)
at kawa.Shell.run(Shell.java:229)
at kawa.Shell.run(Shell.java:172)
at kawa.Shell.run(Shell.java:159)
at kawa.repl.processArgs(repl.java:350)
at kawa.repl.main(repl.java:728)
Caused by: java.lang.Error: invalid types to emitGotoIfCompare2
at gnu.bytecode.CodeAttr.emitGotoIfCompare2(CodeAttr.java:1431)
at gnu.kawa.functions.NumberCompare.compile(NumberCompare.java:248)
at gnu.expr.ApplyExp.compile(ApplyExp.java:154)
at gnu.expr.ApplyExp.compile(ApplyExp.java:117)
at gnu.expr.IfExp.compile(IfExp.java:106)
at gnu.expr.IfExp.compile(IfExp.java:51)
at gnu.expr.Expression.compileNotePosition(Expression.java:127)
at gnu.expr.Expression.compileWithPosition(Expression.java:98)
at gnu.expr.ApplyExp.compile(ApplyExp.java:289)
at gnu.expr.ApplyExp.compile(ApplyExp.java:117)
at gnu.expr.Expression.compileWithPosition(Expression.java:101)
at gnu.expr.BeginExp.compile(BeginExp.java:149)
at gnu.expr.Expression.compileNotePosition(Expression.java:127)
at gnu.expr.Expression.compileWithPosition(Expression.java:98)
at gnu.expr.LetExp.compile(LetExp.java:136)
at gnu.expr.Expression.compileNotePosition(Expression.java:127)
at gnu.expr.Expression.compileWithPosition(Expression.java:98)
at gnu.expr.LetExp.compile(LetExp.java:136)
at gnu.expr.Expression.compileNotePosition(Expression.java:127)
at gnu.expr.Expression.compileWithPosition(Expression.java:113)
at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1453)
at gnu.expr.Compilation.addClass(Compilation.java:1894)
at gnu.expr.Compilation.compile(Compilation.java:915)
... 17 more
#|kawa:2|#

Gerardo Horvilleur <mago>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-02-11 bothner StatusNone Fixed
    Assigned toNone bothner
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code