This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: possible bug


"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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]