java/1350: Tree check: expected tree_list, have pointer_type

osk@hem.passagen.se osk@hem.passagen.se
Wed Dec 20 12:25:00 GMT 2000


>Number:         1350
>Category:       java
>Synopsis:       Tree check: expected tree_list, have pointer_type
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:19:16 PST 2000
>Closed-Date:    
>Last-Modified:  
>Originator:     Oskar Liljeblad
>Release:        unknown-1.0
>Organization:
>Environment:
egcs 2.96 20000814
>Description:
Compiling the program below gives:

$ gcj -C test.java 
test.java: In class `test':
test.java: In method `main(java.lang.String[])':
test.java:3: Tree check: expected tree_list, have pointer_type
test.java:3: Internal compiler error in find_as_inner_class_do, at ../gcc/java/parse.y:3516
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.

Well, it should generate an error like
"Attempt to reference field lengths in java.lang.String[]".
>How-To-Repeat:
class test {
  public static void main(String[] args) {
    int a = args.lengths;
  }
}
>Fix:

>Release-Note:
>Audit-Trail:

Formerly PR gcj/324

>Unformatted:



More information about the Gcc-prs mailing list