From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12882 invoked by alias); 18 Dec 2004 19:12:40 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 12865 invoked by uid 48); 18 Dec 2004 19:12:40 -0000 Date: Sat, 18 Dec 2004 19:12:00 -0000 Message-ID: <20041218191240.12864.qmail@sourceware.org> From: "dan at bolser dot co dot uk" To: java-prs@gcc.gnu.org In-Reply-To: <20041218185620.19070.dan@bolser.co.uk> References: <20041218185620.19070.dan@bolser.co.uk> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/19070] internal compiler error: in generate_bytecode_conditional, at java/jcf-write.c:1271 X-Bugzilla-Reason: CC X-SW-Source: 2004-q4/txt/msg00633.txt.bz2 List-Id: ------- Additional Comments From dan at bolser dot co dot uk 2004-12-18 19:12 ------- I also get the exact same behaviour using... gcc -v Reading specs from /usr/share/gcc-4.0b/lib/gcc/i686-pc-linux-gnu/4.0.0/specs Configured with: ../gcc/configure --prefix=/usr/share/gcc-4.0b --enable-java-awt=gtk Thread model: posix gcc version 4.0.0 20041217 (experimental) Trying to compile this code... public class testish { public static void main (String args[]){ Number pang = null; double pong = pang.doubleValue(); if (pong != null){ System.out.println("well..."); } } } /usr/share/gcc-4.0b/bin/gcj -C testish.java testish.java: In class 'testish': testish.java: In method 'testish.main(java.lang.String[])': testish.java:5: internal compiler error: in generate_bytecode_conditional, at java/jcf-write.c:1271 I guess this should compile, as not testing for the null causes a run time null pointer exception (as shown in comment #2) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19070