[Bug java/11075] New: ICE compiling cross-package inherited constants
robin.garner@crsrehab.gov.au
gcc-bugzilla@gcc.gnu.org
Tue Jun 3 08:42:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11075
Summary: ICE compiling cross-package inherited constants
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: major
Priority: P4
Component: java
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: robin.garner@crsrehab.gov.au
CC: gcc-bugs@gcc.gnu.org
gcj crashes with an ICE when compiling the following code (3 files):
P/a.java:
package P;
class a { static final int A = 2; }
P/b.java:
package P;
public interface b { static int B = a.A; }
Q/c.java:
package Q;
import P.b;
class c {
static int x; { x = b.B; } // Virtually any reference to b.B works here
}
gcj -c P/a.java
gcj -c P/b.java
gcj -c Q/c.java
c.java:4: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Configuration details follow:
$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc-3.3/configure
Thread model: posix
gcc version 3.3
$ uname -a
Linux r105l05.anu.edu.au 2.4.18 #2 SMP Thu Jul 11 13:10:05 EST 2002 i686 unknown
No intermediate files generated.
Also reproduced under gcc-3.2.2, and on an RH 7.1 system (i686) with 3.2.2.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Gcc-bugs
mailing list