[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #18105] with-syntax causes NullPointerException during c
From: |
Chris Wegrzyn |
Subject: |
[Bug-kawa] [bug #18105] with-syntax causes NullPointerException during compilation but not in repl |
Date: |
Wed, 25 Oct 2006 16:54:47 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 |
Follow-up Comment #1, bug #18105 (project kawa):
As an update, this appears to be a problem that results from having a let
expression inside of the first argument to syntax-case (which is the result
of expanding with-syntax). I have attached a simplified test that exhibits
this. I tracked the exception to two nested calls of
LetExp.apply(CallContext) which both have level == 4. This causes evalFrames
to be trashed.
The attached patch reorders syntax-case to rewrite the first argument to
syntax-case within the scope of the let statement, rather than before it. I'm
not sure whether the call to getLiteralsList should occur outside of that
scope, but it hasn't caused any problems for me yet.
_______________________________________________________
Additional Item Attachment:
File name: syntax-case-crash-2.scm Size:0 KB
new test case
<http://savannah.gnu.org/bugs/download.php?file_id=11063>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?18105>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/