This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/27400] New: switch indexed by class crashes compiler
- From: "cagney at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 2 May 2006 19:36:35 -0000
- Subject: [Bug java/27400] New: switch indexed by class crashes compiler
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ cat EnumClass.java
class EnumClass
{
static public final EnumClass x = new EnumClass ();
}
$ cat ClassSwitch.java
class ClassSwitch
{
public static void main (String[] args)
{
switch (args.length) {
case EnumClass.x: return;
}
System.out.println ("Switched");
}
}
$ gcj ClassSwitch.java
ClassSwitch.java:5: internal compiler error: Segmentation fault
$ gcj --version
gcj (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
Summary: switch indexed by class crashes compiler
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: cagney at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27400