From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128924 invoked by alias); 4 Jan 2018 06:52:06 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 128905 invoked by uid 89); 4 Jan 2018 06:52:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 04 Jan 2018 06:52:03 +0000 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1eWzNg-0002Th-N6; Thu, 04 Jan 2018 07:52:00 +0100 Received: from 70-36-239-2.dsl.dynamic.fusionbroadband.com ([70.36.239.2] helo=localhost.localdomain) by mailfront12.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1eWzNR-0004Ma-GV; Thu, 04 Jan 2018 07:51:45 +0100 Subject: Re: Exceptions during macro-expansion To: Duncan Mak , kawa mailing list References: From: Per Bothner Message-ID: <0e2f23ae-7a6a-5e2b-04ef-357e24775b3a@bothner.com> Date: Thu, 04 Jan 2018 06:52:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-q1/txt/msg00002.txt.bz2 On 01/03/2018 03:25 PM, Duncan Mak wrote: > Hello, > > I'm trying to come up with a smaller test case, but in my code that > does a bit of macros, I'm hitting these exceptions when running in > Kawa 3.0: > > Does this look like it's a known bug? It's not a known bug, but I'm betting this might help: diff --git a/gnu/expr/VarValueTracker.java b/gnu/expr/VarValueTracker.java index e9db3eaf8..8b1522c07 100644 --- a/gnu/expr/VarValueTracker.java +++ b/gnu/expr/VarValueTracker.java @@ -23,6 +23,7 @@ public class VarValueTracker public VarValueTracker (VarValueTracker outer) { this.outer = outer; + this.visitor = outer.visitor; this.declValueUsage = outer.declValueUsage; } -- --Per Bothner per@bothner.com http://per.bothner.com/