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]

java/5848: gcj crash on complex statement



>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:


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