This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
java/6484: Error of compilation of GCJ-3.0 (debian gcj-3.0.4-5
- From: pierre dot habouzit at m4x dot org
- To: gcc-gnats at gcc dot gnu dot org, debian-gcc at lists dot debian dot org
- Date: Sat, 27 Apr 2002 02:06:08 +0200 (CEST)
- Subject: java/6484: Error of compilation of GCJ-3.0 (debian gcj-3.0.4-5
>Number: 6484
>Category: java
>Synopsis: Error of compilation of GCJ-3.0 (debian gcj-3.0.4-5
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Fri Apr 26 17:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: MadCoder
>Release: 3.0.4 (Debian testing/unstable)
>Organization:
>Environment:
System: Linux madcoder 2.4.18 #1 mer avr 17 16:07:21 CEST 2002 i686 unknown
Architecture: i686
host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:
there is a bug when compiling this function:
,-------------------------------------------------------
void setInt(int newInt, int pos) {
set[pos] = newInt;
for(int i=0; i<=pos; i++) ++sums[set[i]+newInt];
}
`-------------------------------------------------------
where set is an int[].
but the compilation is good when you use :
,-------------------------------------------------------
void setInt(int newInt, int pos) {
set[pos] = newInt;
for(int i=0; i<=pos; i++) sums[set[i]+newInt] += 1;
}
`-------------------------------------------------------
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: