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]

java/4715: Tree check failure in check_inner_circular_reference



>Number:         4715
>Category:       java
>Synopsis:       Tree check failure in check_inner_circular_reference
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 28 04:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Bryce McKinlay
>Release:        trunk
>Organization:
>Environment:
powerpc-unknown-linux-gnu
>Description:
Building libgcj's java.util package with multiple file input yields a tree check failure. It looks like check_inner_circular_reference can run into unresolved/unloaded classes in certain circumstances, in this case java.util.AbstractMap is a POINTER_TYPE instead of a DECL_TYPE?

A workaround is to add:

if (TREE_CODE (su) == POINTER_TYPE)
  return NULL_TREE;


>How-To-Repeat:
$ cd gcc/libjava
$ gcj -c java/util/*.java -o java-util.o            
./java/util/LinkedHashMap.java:0: Tree check: expected class 'd', have 'x' (identifier_node) in check_inner_circular_reference, at java/parse.y:5245

>Fix:

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