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/49534] New: gcj segfaults on a program from stdin


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.


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