This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

java/3096: GCJ does not increment



>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:


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