This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]