libgcj/5846: gcj compile fails on comments-only file
Tue Mar 5 13:16:00 GMT 2002
>Synopsis: gcj compile fails on comments-only file
>Arrival-Date: Tue Mar 05 13:16:00 PST 2002
>Originator: John K. Hinsdale
Alma Mater Software, Inc.
System: Linux van-halen 2.4.10 #1 Mon Dec 24 07:29:46 EST 2001 i686 unknown
configured with: ./configure
When compiling a Java source file that consists only of comments,
gcj gets a segmentation fault.
Make a java source file with one or more lines of comments:
// This is a comment in myfile.java
/* This is also
a comment */
When you compile it, e.g.,:
gcj -c -g myfile.java
gcj will seg fault.
Don't include the file in one's compilation. However, a big
system might want to be configured in such a away
that results in source files ending up having all
comments. It's convenient at times to comment out an
entire file when developing.
More information about the Gcc-bugs