|
From: | Helmut Eller |
Subject: | [Bug-kawa] [bug #34004] Nullpointer exception in compiler |
Date: | Sat, 13 Aug 2011 11:57:25 +0000 |
User-agent: | Opera/9.80 (X11; Linux i686; U; en) Presto/2.9.168 Version/11.50 |
URL: <http://savannah.gnu.org/bugs/?34004> Summary: Nullpointer exception in compiler Project: Kawa Submitted by: ellerh Submitted on: Sat 13 Aug 2011 11:57:23 AM GMT Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: Compiling the following program productes a NullPointerException: (module-export main) (define (bar (thunk procedure)) (thunk)) (define (foo x) (bar (lambda () x))) (define (main) (foo 1)) kawa -C x.scm (compiling x.scm to x) x.scm:5: internal error while compiling x.scm java.lang.NullPointerException at gnu.expr.LambdaExp.addMethodFor(LambdaExp.java:910) at gnu.expr.LambdaExp.addMethodFor(LambdaExp.java:807) at gnu.expr.LambdaExp.allocMethod(LambdaExp.java:1209) at gnu.expr.LambdaExp.compileSetField(LambdaExp.java:658) at gnu.expr.LambdaExp.compile(LambdaExp.java:754) at gnu.expr.Declaration.load(Declaration.java:372) at gnu.expr.ReferenceExp.compile(ReferenceExp.java:170) at gnu.expr.ApplyExp.compile(ApplyExp.java:374) at gnu.expr.ApplyExp.compile(ApplyExp.java:126) at gnu.expr.Expression.compileNotePosition(Expression.java:156) at gnu.expr.Expression.compileWithPosition(Expression.java:142) at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1627) at gnu.expr.LambdaExp.compileAsMethod(LambdaExp.java:1603) at gnu.expr.LambdaExp.compileEnd(LambdaExp.java:561) at gnu.expr.Compilation.generateBytecode(Compilation.java:2022) at gnu.expr.Compilation.process(Compilation.java:1899) at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:305) at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:290) at kawa.repl.compileFiles(repl.java:785) at kawa.repl.processArgs(repl.java:412) at kawa.repl.main(repl.java:831) [Exit 255] _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?34004> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |