This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
java/4715: Tree check failure in check_inner_circular_reference
- To: gcc-gnats at gcc dot gnu dot org
- Subject: java/4715: Tree check failure in check_inner_circular_reference
- From: bryce at waitaki dot otago dot ac dot nz
- Date: 28 Oct 2001 12:18:44 -0000
- Reply-To: bryce at waitaki dot otago dot ac dot nz
>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: