This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
java/3096: GCJ does not increment
- To: gcc-gnats at gcc dot gnu dot org
- Subject: java/3096: GCJ does not increment
- From: aneesha at hpl dot hp dot com
- Date: 8 Jun 2001 23:49:08 -0000
- Reply-To: aneesha at hpl dot hp dot com
>Number: 3096
>Category: java
>Synopsis: GCJ does not increment
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Fri Jun 08 16:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Aneesh Aggarwal
>Release: gcc version 3.1 20010601 (experimental)
>Organization:
>Environment:
Linux 2.4 on x86
>Description:
GCJ does not increment the value of an entry in an array when
the increment operator "++" is used in front. It, however,
works when the operator is appended at the end.
>How-To-Repeat:
public class inc_test {
public static void main(String [] args) {
long a[];
a = new long[2];
for(int i = 0; i < 2; i++) {
++a[i];
System.out.println(" Value " + a[i]);
}
}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: