This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Internal compiler error
- To: kawa at sources dot redhat dot com
- Subject: Re: Internal compiler error
- From: Jocelyn Paine <popx at pop3 dot ifs dot org dot uk>
- Date: Wed, 18 Jul 2001 21:08:55 +0100 (GMT)
Just to add a bit of detail to this message I sent last night, I was using
java kawa.repl with the -P and -C options to compile a .scm file. Kawa
crashed part of the way through with the trace shown. I presume the class
cast exception is not referring to a Boolean in the program being
compiled, but in the compiler. But I haven't yet managed to find out what
is being objected to. It could be useful if the internal-error-report were
to display the term being processed, or some part of it, because that
could help locate the place in my code that's provoking the problem.
Does anyone have any suggestions?
Jocelyn Paine
On Tue, 17 Jul 2001, Jocelyn Paine wrote:
> Any ideas? Is there likely to be something wrong with
> the code I was compiling, or is this a genuine compiler bug?
> It's with the latest binary release for Windows, 1.6.94 .
>
> (compiling FormulaEvaluator.scm)
> Internal error while compiling FormulaEvaluator.scm
> java.lang.ClassCastException: java.lang.Boolean
> at gnu.bytecode.Field.setConstantValue(Field.java:138)
> at gnu.expr.Declaration.makeField(Declaration.java:498)
> at gnu.expr.ModuleExp.allocFields(Compiled Code)
> at gnu.expr.LambdaExp.allocChildClasses(Compiled Code)
> at gnu.expr.Compilation.addClass(Compiled Code)
> at gnu.expr.Compilation.<init>(Compilation.java:631)
> at gnu.expr.ModuleExp.compileToFiles(Compiled Code)
> at kawa.lang.CompileFile.compile_to_files(CompileFile.java:137)
> at kawa.repl.main(Compiled Code)
>
> Thanks,
>
> Jocelyn Paine
> http://www.ifs.org.uk/~popx/
> +44 (0)7768 534 091
>
>
>
>