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]
Other format: [Raw text]

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:


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