bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bug #36413] Unused function in module


From: Helmut Eller
Subject: [Bug-kawa] [bug #36413] Unused function in module
Date: Sun, 06 May 2012 12:23:44 +0000
User-agent: Opera/9.80 (X11; Linux i686; U; en) Presto/2.10.229 Version/11.62

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

                 Summary: Unused function in module
                 Project: Kawa
            Submitted by: ellerh
            Submitted on: Sun 06 May 2012 12:23:44 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This code 

(module-export foo)

(define (foo) (foo))

(define (bar x)
  (let ((y '()))
    (set! y x)
    y))



causes a NullPointerException:

shell> kawa --version -C x.scm 
Kawa 1.12 (revision 7219M)
Copyright (C) 2011 Per Bothner
(compiling x.scm to x)
x.scm:7:9
x.scm:6:9: warning - no use of bar
x.scm:9: internal error while compiling x.scm
java.lang.NullPointerException
        at gnu.expr.Declaration.load(Declaration.java:376)
        at gnu.expr.ReferenceExp.compile(ReferenceExp.java:169)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:127)
        at gnu.expr.BeginExp.compile(BeginExp.java:153)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:127)
        at gnu.expr.LetExp.compile(LetExp.java:193)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:142)
        at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1670)
        at gnu.expr.LambdaExp.compileAsMethod(LambdaExp.java:1646)
        at gnu.expr.LambdaExp.compileEnd(LambdaExp.java:587)
        at gnu.expr.Compilation.generateBytecode(Compilation.java:2075)
        at gnu.expr.Compilation.process(Compilation.java:1952)
        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)
[Exit 255]








    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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