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

 
 

bug #14697: Error using :: <int>

Submitted by:  Gerardo Horvilleur <mago>
Submitted on:  Mon 03 Oct 2005 04:32:30 PM UTC  
 
Category: Code generationSeverity: 3 - Normal
Item Group: Compile-time exceptionStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 11 Feb 2006 01:45:35 AM UTCbothnerStatusNone=>Fixed
  Assigned toNone=>bothner
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1