gcj/129: Static array length access bug in gcj
anandkr@nortelnetworks.com
anandkr@nortelnetworks.com
Fri Jan 7 12:20:00 GMT 2000
>Number: 129
>Category: gcj
>Synopsis: Static array length access bug in gcj
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 07 12:20:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Anand Krishnaswamy
>Release: gcc version 2.95.1 19990816 (release)
>Organization:
>Environment:
Reading specs from /opt/lib/gcc-lib/powerpc-unknown-linux-gnu/2.95.1/specs
Reading specs from /opt/lib/libgcj.spec
rename spec lib to liborig
>Description:
I get a compiler error when I try the following. Any ideas?
Anand
::::::::::::::
A.java
::::::::::::::
public class A {
ÃÂ ÃÂ public static String[] strArr = { "A", "B", "C" };
}
::::::::::::::
B.java
::::::::::::::
import java.lang.*;
import java.util.*;
public class B {
ÃÂ ÃÂ public static void main ( String[] args ) {
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ int length = A.strArr.length;
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ System.out.println ( "Array length: " + length );
ÃÂ ÃÂ }
}
$ gcj --main=B A.java B.java
B.java:6: Internal compiler error:
B.java:6: Internal compiler error in `expand_expr', at expr.c:5750
Please submit a full bug report.
See <URL: < http://www.gnu.org/software/gcc/faq.html#bugreport >> for instructions.
>How-To-Repeat:
See description
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Java-prs
mailing list