From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 Description of problem: gcj segfaults ("Speicherzugriffsfehler") at method "getTerrain(x,y)", which should return the attribute "terrain" of a "Field[][]" object, while "Field[][]" is an array of the inner class "Field". Source code is attached. [af@maxima mymap]$ echo $CLASSPATH . [af@maxima mymap]$ javac --version Warning: --version not understood. Ignoring. gcj: no input files [af@maxima mymap]$ gcj --version gcj (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [af@maxima mymap]$ javac MyMap.java MyMap.java: In class `MyMap': MyMap.java: In method `MyMap.getTerrain(int,int)': MyMap.java:24: internal error: Speicherzugriffsfehler Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. [af@maxima mymap]$ Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. export CLASSPATH=. (probably not necessary) 2. javac MyMap.java Didn't try to reproduce on other machines/compilers yet. Actual Results: error message, see description Expected Results: compiled class (or message that code makes no sense) Additional info: I'm a Java newbie, so this code might be bullshit. However, gcj should tell me this, right?
Created attachment 90374 [details] Java source code, which causes the bug
Fixed with gcc 3.4.