From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryce McKinlay To: bryce@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: java/247 Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-id: <20010303030600.17650.qmail@sourceware.cygnus.com> X-SW-Source: 2001-q1/msg01917.html List-Id: The following reply was made to PR java/247; it has been noted by GNATS. From: Bryce McKinlay To: bryce@gcc.gnu.org, gcc-gnats@gcc.gnu.org, warnes@queenbee.fhcrc.org, apbianco@redhat.com, Jeff Sturm Cc: Subject: Re: java/247 Date: Sat, 03 Mar 2001 16:07:10 +1300 > FWIW this might be the same ICE I'm seeing. It only occurs in certain methods > that handle double values, and only with -O and above on x86, but with the > current compiler. > > Here's a minimal test case: > > public class DTest { > static double strtod(String s) { > double result = 0; > > try { > result = Double.valueOf(s).doubleValue(); > } catch (NumberFormatException e) { > } > if (result == Double.NaN) { > return 0; > } > return result; > } > } > Thanks for the test case, Jeff. I can reproduce this bug with the current 3.0 branch compiler, so I'm going to update the PR name and reopen it. regards [ bryce ] http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=247&database=gcc