public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: jmr@ugcs.caltech.edu
To: gcc-gnats@gcc.gnu.org
Subject: java/7883: ICE in size_binop, at fold-const.c:1441
Date: Tue, 10 Sep 2002 23:36:00 -0000	[thread overview]
Message-ID: <200209110631.g8B6Vp026673@churchill.internal.avlsi.com> (raw)


>Number:         7883
>Category:       java
>Synopsis:       ICE in size_binop, at fold-const.c:1441
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 10 23:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jesse Rosenstock
>Release:        3.3 20020909 (experimental)
>Organization:
>Environment:
System: Linux churchill 2.4.3-12 #1 Fri Jun 8 15:05:56 EDT 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --prefix=/home/user/jmr/app/gcc --enable-languages=c++,java --enable-shared --enable-threads=posix --with-as=/home/user/jmr/app/binutils/bin/as --with-ld=/home/user/jmr/app/binutils/bin/ld : (reconfigured) 
>Description:
	ICE in size_binop when compiling from a .class file.
>How-To-Repeat:
; cat X.java
import java.util.Vector;

public class X {
    void f() {
        new Vector().add(null);
    }
}

# compile using sun's javac 1.4
; javac X.java

; gcj X.class
X.java: In class `X':
X.java: In method `X.f()':
X.java:5: internal compiler error: in size_binop, at fold-const.c:1441
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

# here's the bytecode that's causing the problem
; javap -c X
[...]
Method void f()
   0 new #2 <Class java.util.Vector>
   3 dup
   4 invokespecial #3 <Method java.util.Vector()>
   7 aconst_null
   8 invokevirtual #4 <Method boolean add(java.lang.Object)>
  11 pop
  12 return

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2002-09-11  6:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-10 23:36 jmr [this message]
2002-10-08  6:34 aph
2002-10-16 16:56 Jesse Rosenstock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200209110631.g8B6Vp026673@churchill.internal.avlsi.com \
    --to=jmr@ugcs.caltech.edu \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).