[Bug java/21540] switch stmt problem

2005-10-12 Thread mckinlay at redhat dot com
--- Comment #10 from mckinlay at redhat dot com 2005-10-13 01:12 --- Fixed checked in to 4.0 branch. -- mckinlay at redhat dot com changed: What|Removed |Added Known

[Bug java/21540] switch stmt problem

2005-10-12 Thread cvs-commit at gcc dot gnu dot org
--- Comment #9 from cvs-commit at gcc dot gnu dot org 2005-10-13 01:11 --- Subject: Bug 21540 CVSROOT:/cvs/gcc Module name:gcc Branch: gcc-4_0-branch Changes by: [EMAIL PROTECTED] 2005-10-13 01:11:27 Modified files: gcc/java : ChangeLog pars

[Bug java/21540] switch stmt problem

2005-06-27 Thread tromey at gcc dot gnu dot org
--- Additional Comments From tromey at gcc dot gnu dot org 2005-06-27 18:41 --- I checked in the fix on cvs trunk. -- What|Removed |Added Status|ASSIGNED

[Bug java/21540] switch stmt problem

2005-06-27 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-06-27 18:40 --- Subject: Bug 21540 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-06-27 18:40:17 Modified files: libjava: ChangeLog gcc/java : C

[Bug java/21540] switch stmt problem

2005-06-21 Thread tromey at gcc dot gnu dot org
--- Additional Comments From tromey at gcc dot gnu dot org 2005-06-21 19:05 --- I'm testing a patch. -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |t

[Bug java/21540] switch stmt problem

2005-06-21 Thread tromey at gcc dot gnu dot org
--- Additional Comments From tromey at gcc dot gnu dot org 2005-06-21 18:36 --- The bug here is that the semantic analysis for a case expression, in parse.y:java_complete_lhs(), just does this: /* First, the case expression must be constant. Values of final fields are acc

[Bug java/21540] switch stmt problem

2005-05-19 Thread falk at debian dot org
--- Additional Comments From falk at debian dot org 2005-05-19 15:27 --- (In reply to comment #3) > gcc has this problem as well. Although, it will let you have an expression > using > only constants like > > case 'A' + ('B'<<8): > > but not > > case *((uint16_t *)"AB"): Since C req

[Bug java/21540] switch stmt problem

2005-05-19 Thread hchapman-gcc-bugs at 3gfp dot com
--- Additional Comments From hchapman-gcc-bugs at 3gfp dot com 2005-05-19 15:09 --- gcc has this problem as well. Although, it will let you have an expression using only constants like case 'A' + ('B'<<8): but not case *((uint16_t *)"AB"): A gcc example: #include int main() { un

[Bug java/21540] switch stmt problem

2005-05-12 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-12 21:49 --- Confirmed, here is another example: public class bug { public static final long xxx = 555; public static final int xxx1 = (int)(xxx >>> 32); public int fn (int v) { switch (v)

[Bug java/21540] switch stmt problem

2005-05-12 Thread green at redhat dot com
--- Additional Comments From green at redhat dot com 2005-05-12 20:03 --- Created an attachment (id=8880) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8880&action=view) Test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21540