public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/18741] New: [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl)
@ 2004-11-30 16:44 ovidr at users dot sourceforge dot net
  2004-11-30 16:54 ` [Bug java/18741] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ovidr at users dot sourceforge dot net @ 2004-11-30 16:44 UTC (permalink / raw)
  To: java-prs

public class bla {
        public static void main(String[] a) {
                int x = 2;
                byte [] buffer = new byte [(int)x];
        }
}

gcc version 4.0.0 20041130 (experimental)
gcj -c bla.java

bla.java: In class 'bla':
bla.java: In method 'bla.main(java.lang.String[])':
bla.java:5: internal compiler error: tree check: expected class 'expression',
have 'declaration' (var_decl) in annotate_with_file_line, at tree.c:2871
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: [4.0 Regression] ICE tree check: expected class
                    'expression', have 'declaration' (var_decl)
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ovidr at users dot sourceforge dot net
                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=18741


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug java/18741] [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl)
  2004-11-30 16:44 [Bug java/18741] New: [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl) ovidr at users dot sourceforge dot net
@ 2004-11-30 16:54 ` pinskia at gcc dot gnu dot org
  2004-11-30 16:59 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-30 16:54 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18741


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug java/18741] [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl)
  2004-11-30 16:44 [Bug java/18741] New: [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl) ovidr at users dot sourceforge dot net
  2004-11-30 16:54 ` [Bug java/18741] " pinskia at gcc dot gnu dot org
@ 2004-11-30 16:59 ` pinskia at gcc dot gnu dot org
  2004-11-30 17:02 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-30 16:59 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-checking, wrong-code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18741


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug java/18741] [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl)
  2004-11-30 16:44 [Bug java/18741] New: [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl) ovidr at users dot sourceforge dot net
  2004-11-30 16:54 ` [Bug java/18741] " pinskia at gcc dot gnu dot org
  2004-11-30 16:59 ` pinskia at gcc dot gnu dot org
@ 2004-11-30 17:02 ` pinskia at gcc dot gnu dot org
  2004-11-30 23:53 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-30 17:02 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-30 17:02 -------
Here is the backtrace:
#0  0x9002c778 in exit ()
#1  0x001a6e1c in diagnostic_report_diagnostic (context=0x9002c768, diagnostic=0xbfffea8c) at /
Users/pinskia/src/local/gcc/gcc/diagnostic.c:339
#2  0x001a6e1c in diagnostic_report_diagnostic (context=0x5c6374, diagnostic=0xbfffea8c) at /
Users/pinskia/src/local/gcc/gcc/diagnostic.c:339
#3  0x001a6f44 in internal_error (msgid=0x1 <Address 0x1 out of bounds>) at /Users/pinskia/src/
local/gcc/gcc/diagnostic.c:502
#4  0x00360a8c in tree_class_check_failed (node=0x1, cl=tcc_exceptional, file=0x83 <Address 0x83 
out of bounds>, line=2871, function=0x5bd5ec "annotate_with_file_line") at /Users/pinskia/src/local/
gcc/gcc/tree.c:5495
#5  0x00361314 in annotate_with_file_line (node=0xbfffea8c, file=0x47421c "var_decl", line=2871) at 
/Users/pinskia/src/local/gcc/gcc/tree.c:2871
#6  0x00097ca4 in java_gimplify_expr (expr_p=0x4717cc, pre_p=0x597140, post_p=0x83) at /Users/
pinskia/src/local/gcc/gcc/java/java-gimplify.c:81
#7  0x000bf4fc in gimplify_expr (expr_p=0xbfffed48, pre_p=0xbfffeddc, post_p=0xbfffede0, 
gimple_test_f=0xbbc9c <is_gimple_formal_tmp_rhs>, fallback=fb_rvalue) at /Users/pinskia/src/local/
gcc/gcc/gimplify.c:3535
#8  0x000c6c80 in internal_get_tmp_var (val=0x42444180, pre_p=0xbfffeddc, post_p=0x83, 
is_formal=0 '\0') at /Users/pinskia/src/local/gcc/gcc/gimplify.c:469
#9  0x000c6fbc in gimplify_save_expr (expr_p=0xbfffed48, pre_p=0xbfffede0, post_p=0x83) at /
Users/pinskia/src/local/gcc/gcc/gimplify.c:3010


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-30 17:02:18
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18741


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug java/18741] [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl)
  2004-11-30 16:44 [Bug java/18741] New: [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl) ovidr at users dot sourceforge dot net
                   ` (2 preceding siblings ...)
  2004-11-30 17:02 ` pinskia at gcc dot gnu dot org
@ 2004-11-30 23:53 ` pinskia at gcc dot gnu dot org
  2004-12-01 21:09 ` tromey at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-30 23:53 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-30 23:53 -------
I also fails on 20041124.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18741


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug java/18741] [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl)
  2004-11-30 16:44 [Bug java/18741] New: [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl) ovidr at users dot sourceforge dot net
                   ` (3 preceding siblings ...)
  2004-11-30 23:53 ` pinskia at gcc dot gnu dot org
@ 2004-12-01 21:09 ` tromey at gcc dot gnu dot org
  2004-12-02 16:37 ` cvs-commit at gcc dot gnu dot org
  2004-12-02 16:38 ` tromey at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-12-01 21:09 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2004-12-01 21:09 -------
I'm testing a patch


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tromey at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18741


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug java/18741] [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl)
  2004-11-30 16:44 [Bug java/18741] New: [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl) ovidr at users dot sourceforge dot net
                   ` (4 preceding siblings ...)
  2004-12-01 21:09 ` tromey at gcc dot gnu dot org
@ 2004-12-02 16:37 ` cvs-commit at gcc dot gnu dot org
  2004-12-02 16:38 ` tromey at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-02 16:37 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-02 16:37 -------
Subject: Bug 18741

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tromey@gcc.gnu.org	2004-12-02 16:37:41

Modified files:
	gcc/java       : ChangeLog java-gimplify.c 

Log message:
	PR java/18741:
	* java-gimplify.c (java_gimplify_expr): Don't call
	SET_EXPR_LOCATION unless wrapped tree is an expression.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1510&r2=1.1511
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/java-gimplify.c.diff?cvsroot=gcc&r1=1.17&r2=1.18



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18741


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug java/18741] [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl)
  2004-11-30 16:44 [Bug java/18741] New: [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl) ovidr at users dot sourceforge dot net
                   ` (5 preceding siblings ...)
  2004-12-02 16:37 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-02 16:38 ` tromey at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-12-02 16:38 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2004-12-02 16:38 -------
Fix checked in.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18741


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-12-02 16:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-30 16:44 [Bug java/18741] New: [4.0 Regression] ICE tree check: expected class 'expression', have 'declaration' (var_decl) ovidr at users dot sourceforge dot net
2004-11-30 16:54 ` [Bug java/18741] " pinskia at gcc dot gnu dot org
2004-11-30 16:59 ` pinskia at gcc dot gnu dot org
2004-11-30 17:02 ` pinskia at gcc dot gnu dot org
2004-11-30 23:53 ` pinskia at gcc dot gnu dot org
2004-12-01 21:09 ` tromey at gcc dot gnu dot org
2004-12-02 16:37 ` cvs-commit at gcc dot gnu dot org
2004-12-02 16:38 ` tromey at gcc dot gnu dot org

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).