This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: PATCH RFA: Avoid crash in Java compiler
- From: Andrew Haley <aph at redhat dot com>
- To: Ian Lance Taylor <ian at airs dot com>
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Wed, 30 Mar 2005 18:11:30 +0100
- Subject: Re: PATCH RFA: Avoid crash in Java compiler
- References: <20050329220222.836.qmail@gossamer.airs.com>
Ian Lance Taylor writes:
> The crash occurs in maybe_yank_clinit in java/parse.y. The code
> dereferences a NULL pointer. This simple patch avoids the ICE.
>
> I haven't tested this except on the original test case. I don't know
> whether the patch is correct, in the sense that I don't know whether
> a NULL pointer here is hiding a different problem elsewhere.
>
> Should I check this in?
Yes. okay. However, we perhaps should unset CLASSPATH in our build
machinery.
Andrew.
> 2005-03-29 Ian Lance Taylor <ian@airs.com>
>
> * parse.y (maybe_yank_clinit): Don't crash if bbody is NULL.
>