[Bug java/49534] New: gcj segfaults on a program from stdin
radford at blackbean dot org
gcc-bugzilla@gcc.gnu.org
Sun Jun 26 20:48:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49534
Summary: gcj segfaults on a program from stdin
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: radford@blackbean.org
The following command
echo 'class Hello {public static void main(String[] args)
{System.out.println("hello, world");}}' | gcj -x java --main=Hello - -o Hello
gives
jc1: warning: no input file specified
jc1: internal compiler error: Segmentation fault
The equivalent C program works when piped to gcc.
More information about the Gcc-bugs
mailing list