public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/27400]  New: switch indexed by class crashes compiler
@ 2006-05-02 19:36 cagney at redhat dot com
  2006-05-29 22:12 ` [Bug java/27400] " pinskia at gcc dot gnu dot org
  2007-01-09 20:53 ` tromey at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: cagney at redhat dot com @ 2006-05-02 19:36 UTC (permalink / raw)
  To: java-prs

$ 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-09 20:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-02 19:36 [Bug java/27400] New: switch indexed by class crashes compiler cagney at redhat dot com
2006-05-29 22:12 ` [Bug java/27400] " pinskia at gcc dot gnu dot org
2007-01-09 20:53 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).