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: [email protected]
ReportedBy: [email protected]
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.