This is the mail archive of the
java-prs@sourceware.cygnus.com
mailing list for the Java project.
Re: gcj/56: gcj segfaults in jc1 on OK java file
- To: apbianco at cygnus dot com
- Subject: Re: gcj/56: gcj segfaults in jc1 on OK java file
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: 21 Oct 1999 02:50:00 -0000
- Cc: java-prs at sourceware dot cygnus dot com,
- Reply-To: Bryce McKinlay <bryce at albatross dot co dot nz>
The following reply was made to PR gcj/56; it has been noted by GNATS.
From: Bryce McKinlay <bryce@albatross.co.nz>
To: ashe@qms.com
Cc: java-gnats@sourceware.cygnus.com,
Alexandre Petit-Bianco <apbianco@cygnus.com>
Subject: Re: gcj/56: gcj segfaults in jc1 on OK java file
Date: Thu, 21 Oct 1999 15:49:41 +1300
ashe@qms.com wrote:
> The attached reduced-case test file causes a segfault
> from jc1: (Can't get it much shorter...)
>
> public final class Foo {
> public static void main(String[] args) {
> Object o = args;
> int[] a;
> if (!(o instanceof int[]) || (a = (int[])o).length != 2) {
> }
> }
> }
I took a quick look at this. I *can* get it shorter (or at least simpler) - the
parser chokes when it encounters an assignment combined with method calls or
field accesses.
public class A
{
public int someint = 5;
}
public class Bar
{
public void bar ()
{
A a;
A b = new A();
int c;
c = (a = b).someint;
}
}
regards
[ bryce ]