bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #35555] Tail-call in syntax-case


From: Helmut Eller
Subject: [Bug-kawa] [bug #35555] Tail-call in syntax-case
Date: Fri, 17 Feb 2012 15:48:46 +0000
User-agent: Opera/9.80 (X11; Linux i686; U; en) Presto/2.10.229 Version/11.61

URL:
  <http://savannah.gnu.org/bugs/?35555>

                 Summary: Tail-call in syntax-case
                 Project: Kawa
            Submitted by: ellerh
            Submitted on: Fri 17 Feb 2012 03:48:45 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Compiling this code confuses the compiler:

(define (foo forms)
  (syntax-case forms ()
    (((x . y)  . rest)
     (foo #'rest))
    (_ #f)))



kawa --version -C x.scm 
Kawa 1.12 (revision 7170M)
Copyright (C) 2011 Per Bothner
(compiling x.scm to x)
x.scm:3: internal error while compiling x.scm
java.lang.InternalError
        at gnu.bytecode.Label.setTypes(Label.java:101)
        at gnu.bytecode.Label.define(Label.java:220)
        at gnu.expr.BlockExp.compile(BlockExp.java:80)
        at gnu.expr.Expression.compileWithPosition(Expression.java:130)
        at gnu.expr.LetExp.compile(LetExp.java:195)
        at gnu.expr.Expression.compileWithPosition(Expression.java:130)
        at gnu.expr.LetExp.compile(LetExp.java:195)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:142)
        at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1649)
        at gnu.expr.LambdaExp.compileAsMethod(LambdaExp.java:1625)
        at gnu.expr.LambdaExp.compileSetField(LambdaExp.java:675)
        at gnu.expr.SetExp.compile(SetExp.java:171)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:142)
        at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1649)
        at gnu.expr.Compilation.generateBytecode(Compilation.java:2041)
        at gnu.expr.Compilation.process(Compilation.java:1919)
        at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:305)
        at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:290)
        at kawa.repl.compileFiles(repl.java:817)
        at kawa.repl.processArgs(repl.java:444)
        at kawa.repl.main(repl.java:863)







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35555>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]