public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/5848: gcj crash on complex statement
@ 2002-03-06 4:06 goran
0 siblings, 0 replies; only message in thread
From: goran @ 2002-03-06 4:06 UTC (permalink / raw)
To: gcc-gnats
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1837 bytes --]
>Number: 5848
>Category: java
>Synopsis: gcj "crashes" on syntax with complex cast
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed Mar 06 04:06:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:
>Release: 3.2 20020305 (experimental)
>Organization:
kirra.net
>Environment:
System: Linux cm-linux.lla.sema.se 2.4.17 #8 mån feb 18 17:25:46 CET 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure i686-pc-linux-gnu --prefix=/usr/local/gcc --enable-threads --enable-languages=c++,java
>Description:
This code does not compile on gcj (but work on J2DK/Jikes)
----------------- snip (x.java) ------------------------------------------
import java.util.Vector;
import java.util.Enumeration;
public class x
{
private Vector data;
void sub()
{
long sz = 0;
for (Enumeration e = data.elements() ; e.hasMoreElements() ;) {
sz =+ ((byte[])e.nextElement()).length;
}
}
}
----------------- snip (gcj output)---------------------------------------
bash-2.05a$ gcc -c x.java
x.java: In class `x':
x.java: In method `x.sub()':
x.java:11: tree check: expected expr_with_file_location, have convert_expr in qualify_ambiguous_name, at ./java/parse.y:11300
Var vänlig och skicka in en komplett felrapport,
om möjligt med preprocessad källfil.
Se <URL:http://www.gnu.org/software/gcc/bugs.html> för instruktioner.
----------------- snip ---------------------------------------------------
>How-To-Repeat:
Just compile the snippet above
>Fix:
seems to be a parser error according to the gcj output
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-03-06 12:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-06 4:06 java/5848: gcj crash on complex statement goran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).