This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/49534] New: gcj segfaults on a program from stdin
- From: "radford at blackbean dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 26 Jun 2011 20:48:39 +0000
- Subject: [Bug java/49534] New: gcj segfaults on a program from stdin
- Auto-submitted: auto-generated
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.