This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: switch constant issue
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: steve <steve at netfuel dot com>, <java at gcc dot gnu dot org>
- Date: Mon, 9 Jun 2003 13:23:42 -0400 (EDT)
- Subject: Re: switch constant issue
On Mon, 9 Jun 2003, Andrew Haley wrote:
> > If this is a bug I will submit it.
>
> Looks like a bug to me. I guess no-assume-compiled is deferring the
> resolution of this constant to runtime, and this conflicts with the
> compiler's requirement that case labels be constant. I'm not sure
> about the best way to resolve this. Please submit the bug.
I think it was fixed in:
2003-01-24 Tom Tromey <tromey@redhat.com>
* class.c (build_static_field_ref): Only a String or numeric field
can fold to a constant.
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/class.c.diff?r1=1.150&r2=1.151&f=h
Jeff