From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13061 invoked by alias); 19 Apr 2007 16:39:56 -0000 Received: (qmail 13041 invoked by uid 48); 19 Apr 2007 16:39:56 -0000 Date: Thu, 19 Apr 2007 16:39:00 -0000 Message-ID: <20070419163956.13040.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug java/31622] Segment violation in the “toString” method on a mathematical expression In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "eduardo dot iniesta at aquiline dot es" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2007-q2/txt/msg00017.txt.bz2 ------- Comment #3 from eduardo dot iniesta at aquiline dot es 2007-04-19 17:39 ------- (In reply to comment #1) Thanks... The exact version is: $ gcj --version gcj (GCC) 4.3.0 20061212 (experimental) ... > Are you sure you are using gcj 4.3? > > I see a SEGV with 4.1 and 4.2. But with 4.3 I see an error: > > opsy. gcj -C Fail.java > Fail.java:5: error: Cannot invoke toString() on the primitive type long > r=(a-b).toString(); > ^^^^^^^^^^^^^^^^ > 1 problem (1 error) > > (Note that, in all likelihood, we won't fix front end bugs of this nature > in 4.1 or 4.2.) > (In reply to comment #1) > Are you sure you are using gcj 4.3? > > I see a SEGV with 4.1 and 4.2. But with 4.3 I see an error: > > opsy. gcj -C Fail.java > Fail.java:5: error: Cannot invoke toString() on the primitive type long > r=(a-b).toString(); > ^^^^^^^^^^^^^^^^ > 1 problem (1 error) > > (Note that, in all likelihood, we won't fix front end bugs of this nature > in 4.1 or 4.2.) > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31622