Bug 49534

Summary: gcj segfaults on a program from stdin
Product: gcc Reporter: Jim Radford <radford>
Component: javaAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 4.5.1   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed:

Description Jim Radford 2011-06-26 20:48:38 UTC
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.
Comment 1 Andrew Pinski 2016-09-30 22:49:21 UTC
Closing as won't fix as the Java front-end has been removed from the trunk.