This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: possible bug
- To: "Richard Giuly" <rgiuly at hotmail dot com>
- Subject: Re: possible bug
- From: Per Bothner <per at bothner dot com>
- Date: 09 Mar 2001 20:58:37 -0800
- Cc: kawa at sourceware dot cygnus dot com
- References: <F106yfogkJXrRjbDt3H00004604@hotmail.com>
"Richard Giuly" <rgiuly@hotmail.com> writes:
> This command in Kawa 1.6.68 causes a crash:
>
> (define (fn x y) (fn x))
Well, it *should* crash - but at run-time, not compile-time.
Fixing this is a bit tricky. The problem is that the check
for too many or too few arguments is done too late, when we
are already generating code, and have made various assumption.
Moving the check to InlineCalls may be reasonable.
I don't see this as having a high priority - at least you
are getting a compiler diagnostic:
<stdin>:1:19: warning - too few args for fn
<stdin>:1:19: internal error while compiling - caught: java.lang.NullPointerException
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/