This is the mail archive of the java-prs@sourceware.cygnus.com mailing list for the Java project.


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

Re: gcj/56: gcj segfaults in jc1 on OK java file


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 ]
 
 

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