gcj/297: internal error when compiling static inner class code

osk@hem.passagen.se osk@hem.passagen.se
Fri Aug 4 04:30:00 GMT 2000


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


More information about the Java-prs mailing list