This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/19070] internal compiler error: in generate_bytecode_conditional, at java/jcf-write.c:1271
- From: "dan at bolser dot co dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Dec 2004 19:12:40 -0000
- Subject: [Bug java/19070] internal compiler error: in generate_bytecode_conditional, at java/jcf-write.c:1271
- References: <20041218185620.19070.dan@bolser.co.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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