CONTEXT: - GCC version: 4.3.0. - Front end: gcj. - Operating System: Linux Debian, kernel 2.6.17-2-686. - Hardware: CPU Intel Pentium 4 Xeon, 3 GHz, 16 KB cache L1, 2 MB cache L2. RAM: 1 GB.
There is a segment violation error when compiling the following code: public class Fail { public static void main(String args[]) { long a=5, b=2, r; r=(a-b).toString(); } } The line number 5, r=(a-b).toString();, causes a segment violation during the compilation: gcj -C -Wall Fail.java -- Summary: Segment violation in the “toString” method on a mathematical expression Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: eduardo dot iniesta at aquiline dot es GCC build triplet: i486-linux-gnu GCC host triplet: Intel Pentium 4 Xeon GCC target triplet: i486-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31622