This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/19711] New: gcj segfaults instead of reporting the ambiguous expression
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2005 13:34:10 -0000
- Subject: [Bug java/19711] New: gcj segfaults instead of reporting the ambiguous expression
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[forwarded from http://bugs.debian.org/286715]
seen with 3.3, 3,4, 4.0
import java.util.*;
public class Main {
public static void main(String[] args) {
boolean test = ((args == null) || (args.length == 0));
System.out.println("There are " +
test ? "not" : "some" +
" arguments");
}
}
$ gcj-3.4 -C Main.java
Main.java: In class `Main':
Main.java: In method `Main.main(java.lang.String[])':
Main.java:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions
(javac is from Blackdown's 1.4.2 packages)
$ javac Main.java
Main.java:6: incompatible types
found : java.lang.String
required: boolean
System.out.println("There are " +
^
1 error
--
Summary: gcj segfaults instead of reporting the ambiguous
expression
Product: gcc
Version: 3.3.6
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19711