public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/23754] New: 4.1 ICE: tree check error in check_inner_circular_reference
@ 2005-09-06 20:21 wmahan at gmail dot com
  2005-09-06 22:43 ` [Bug java/23754] [3.4/4.0/4.1 Regression]: " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 5+ messages in thread
From: wmahan at gmail dot com @ 2005-09-06 20:21 UTC (permalink / raw)
  To: java-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1342 bytes --]

With certain invalid code, the 4.1 branch of gcj produces an ICE after giving
the correct error message. For example:

$ cat T5.java 
final class T6 {
}
class T5 extends T6 {
}

$ gcj -C T5.java 
T5.java:3: error: Can't subclass final classes: T6.
class T5 extends T6 {
                    ^
T5.java:0: internal compiler error: tree check: expected tree that contains
‘decl minimal’ structure, have ‘identifier_node’  in
check_inner_circular_reference, at ./gcc/java/parse.y:5389
Please submit a full bug report,[...]


This problem happens with latest CVS and the 4.1-20050515 snapshot but not
4.0.1. It sounds similar to bug 4715, and it seems to have a similar workaround
to the one given there; adding

 if (TREE_CODE (su) == POINTER_TYPE)
   continue;

to check_inner_circular_reference() makes the problem go away.

-- 
           Summary: 4.1 ICE: tree check error in
                    check_inner_circular_reference
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wmahan at gmail dot com
                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=23754


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

end of thread, other threads:[~2007-01-09 20:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23754-11253@http.gcc.gnu.org/bugzilla/>
2005-10-30 23:20 ` [Bug java/23754] [3.4/4.0/4.1 Regression]: tree check error in check_inner_circular_reference pinskia at gcc dot gnu dot org
2006-02-28 20:41 ` [Bug java/23754] [3.4/4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-05-25  2:45 ` [Bug java/23754] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2007-01-09 20:52 ` [Bug java/23754] [4.0/4.1/4.2/4.3 " tromey at gcc dot gnu dot org
2005-09-06 20:21 [Bug java/23754] New: 4.1 ICE: " wmahan at gmail dot com
2005-09-06 22:43 ` [Bug java/23754] [3.4/4.0/4.1 Regression]: " pinskia 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).