This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/19070] internal compiler error: in generate_bytecode_conditional, at java/jcf-write.c:1271


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]