This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
gcj/297: internal error when compiling static inner class code
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/297: internal error when compiling static inner class code
- From: osk at hem dot passagen dot se
- Date: 4 Aug 2000 11:28:41 -0000
- Reply-To: osk at hem dot passagen dot se
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, osk@hem.passagen.se
>Number: 297
>Category: gcj
>Synopsis: internal error when compiling static inner class code
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 04 04:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Oskar Liljeblad
>Release: unknown-1.0
>Organization:
>Environment:
egcs 2.96 20000731
>Description:
Compiling the code below gives this error:
$ gcj -C Collections.java
Collections.java: In class `Collections$SomeInnerClass':
Collections.java: In method `access$0(Collections$SomeInnerClass)':
Collections.java:0: Tree check: expected tree_list, have pointer_type
Collections.java:0: Internal compiler error in find_as_inner_class_do, at ../gcc/java/parse.y:3517
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
$
If you remove 'static' from SomeInnerClass or super.next() it
compiles fine.
>How-To-Repeat:
class Collections {
static class SomeInnerClass {
public void bleh() {
new Iterator() {
public void next() {
super.next();
}
};
}
}
}
class Iterator {
public void next() { }
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: