jc1 segfaults in resolve_qualified_expression_name

Steven Ashe ashe@boulder.qms.com
Thu Sep 30 13:58:00 GMT 1999


  >
  > The best thing to do is to file a PR, using this URL
  > http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl . You can include the
  > Java file in the PR, as far as you're willing to have other people see
  > it and as far as it's not something that will taint people looking at
  > it (it would be a bad idea to file a Sun's JDK source file, for
  > example.)
  > 
  > If those two conditions can't be satisfied, I'm afraid you'll have to
  > work the original file out in order to isolate the bug and file that
  > instead.
  > 
  > Let me know if you're having trouble using the bug tracking system
  > (Gnat) we rely on.
  > 
  > Thanks for the bug report.
  > 
  >./A 
 
I will submit this via gnats, but I got it down to a very short test case:
Here it is (this segfaults jc1):

public final class Foo {
    public static void main(String[] args) {
        Object o = args;
        int[]  a;
        if (!(o instanceof int[]) || (a = (int[])o).length != 2) {
        }
    }
}


More information about the Java mailing list