This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/11075] New: ICE compiling cross-package inherited constants
- From: "robin dot garner at crsrehab dot gov dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2003 08:42:33 -0000
- Subject: [Bug java/11075] New: ICE compiling cross-package inherited constants
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.