Package: gcj-4.0 Version: 4.0.2-5j2 Severity: normal GCJ fails with message internal compiler error: in generate_bytecode_insns, at java/jcf-write.c:1960 when trying to compile something like "1++".
Javac from SableVM reports semantic error on this. This problem exist in gcc-snapshot too. To reproduce bug, follow this instructions: $ cat << EOF > gcjbug.java class gcjbug { public static void main (String [] p) { System.out.println(1++); } } EOF $ gcj -C gcjbug.java gcjbug.java: In class 'gcjbug': gcjbug.java: In method 'gcjbug.main(java.lang.String[])': gcjbug.java:3: internal compiler error: in generate_bytecode_insns, at java/jcf-write.c:1960 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>. $ /usr/lib/gcc-snapshot/bin/gcj -C gcjbug.java gcjbug.java: In class 'gcjbug': gcjbug.java: In method 'gcjbug.main(java.lang.String[])': gcjbug.java:3: internal compiler error: in generate_bytecode_insns, at java/jcf-write.c:1960 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. $ javac-sablevm gcjbug.java Found 1 semantic error compiling "gcjbug.java": 3. System.out.println(1++); ^ *** Semantic Error: Only a variable of numeric type can appear in this context. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (900, 'testing'), (800, 'stable'), (700, 'unstable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.15-1-amd64-k8 Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2) Versions of packages gcj-4.0 depends on: ii gcc-4.0 4.0.2-5 The GNU C compiler ii gij-4.0 4.0.2-5j2 The GNU Java bytecode interpreter ii java-common 0.23 Base of all Java packages ii libc6 2.3.5-8.1 GNU C Library: Shared libraries an ii libgcc1 1:4.0.2-5 GCC support library ii libgcj6-common 4.0.2-5j2 Java runtime library for use with ii libgcj6-dev 4.0.2-5j2 Java development headers and stati ii zlib1g 1:1.2.3-9 compression library - runtime Versions of packages gcj-4.0 recommends: ii fastjar 1:4.0.2-5 Jar creation utility -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]