bugKawa - Bugs: bug #18736, intenal compile error -- svn rev...

 
 

bug #18736: intenal compile error -- svn rev 5816

Submitted by:  tk <huh>
Submitted on:  Tue 09 Jan 2007 08:05:55 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.

 

Wed 28 Feb 2007 10:27:14 PM UTC, comment #1:

I checked in a fix for this,
The problem is that the value of 'val' expanded to a void value, which confused the compiler.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Tue 09 Jan 2007 08:05:55 PM UTC, original submission:

$ rlwrap java -jar lib/kawa.jar
(define-syntax time
(syntax-rules ()
((time . body)
(let* ((.time. (java.lang.System:currentTimeMillis))
(val ((lambda () . body))))
(format #t "~s ms elapsed~%" (- (java.lang.System:currentTimeMillis) .time.))
val))))
#!null
#|kawa:8|# (time (sleep 1))
/dev/stdin:8:1: internal compile error - caught java.lang.Error: popType called with empty stack atInteractiveLevel$2.run(gnu.mapping.CallContext)void
java.lang.Error: popType called with empty stack atInteractiveLevel$2.run(gnu.mapping.CallContext)void
at gnu.mapping.WrappedException.wrapIfNeeded(WrappedException.java:104)
at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:151)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:204)
at kawa.Shell.run(Shell.java:230)
at kawa.Shell.run(Shell.java:172)
at kawa.Shell.run(Shell.java:159)
at kawa.repl.main(repl.java:844)
Caused by: java.lang.Error: popType called with empty stack atInteractiveLevel$2.run(gnu.mapping.CallContext)void
at gnu.bytecode.CodeAttr.popType(CodeAttr.java:316)
at gnu.bytecode.CodeAttr.emitStore(CodeAttr.java:1201)
at gnu.expr.Declaration.compileStore(Declaration.java:313)
at gnu.expr.LetExp.store_rest(LetExp.java:137)
at gnu.expr.LetExp.compile(LetExp.java:188)
at gnu.expr.Expression.compileNotePosition(Expression.java:157)
at gnu.expr.Expression.compileWithPosition(Expression.java:128)
at gnu.expr.LetExp.compile(LetExp.java:190)
at gnu.expr.Expression.compileNotePosition(Expression.java:157)
at gnu.expr.Expression.compileWithPosition(Expression.java:143)
at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1501)
at gnu.expr.Compilation.generateBytecode(Compilation.java:2005)
at gnu.expr.Compilation.process(Compilation.java:1879)
at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:300)
at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:62)
... 5 more
#|kawa:9|#

tk <huh>

 

(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

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  • -unavailable- added by huh (Submitted the item)
  •  

    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
    Wed 28 Feb 2007 10:27:14 PM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1