java/1112: Source parser: method call on cast to interface type produces internal error
bryce@albatross.co.nz
bryce@albatross.co.nz
Wed Dec 20 12:06:00 GMT 2000
>Number: 1112
>Category: java
>Synopsis: Source parser: method call on cast to interface type produces internal error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 12:06:07 PST 2000
>Closed-Date: Sun Mar 05 16:12:46 PST 2000
>Last-Modified: Sun Mar 5 16:16:01 PST 2000
>Originator: Bryce McKinlay <bryce@albatross.co.nz>
>Release: gcc 2.96 19991109
>Organization:
>Environment:
any
>Description:
Compiling the following test code results in the error
"Test.java:8: internal error in check-init: tree code not implemented: pointer_type"
also, replacing the interface method with a "void" method gives the
similar error
"Test.java:7: internal error in check-init: tree code not implemented: void_type"
>How-To-Repeat:
public interface A
{
String getStr();
}
public class B implements A
{
public String getStr()
{
return "foo";
}
}
public class Test
{
public static void main(String args[])
{
Object obj = new B();
String s;
if (obj instanceof A)
s = ((A) obj).getStr();
}
}
>Fix:
>Release-Note:
>Audit-Trail:
Formerly PR gcj/106
State-Changed-From-To: open->closed
State-Changed-By: bryce
State-Changed-When: Sun Mar 5 16:12:46 2000
State-Changed-Why:
Not reproducable in current build (20000305)
From: bryce@albatross.co.nz
To: apbianco@cygnus.com, bryce@albatross.co.nz,
java-gnats@sourceware.cygnus.com
Cc:
Subject: Re: gcj/106
Date: 6 Mar 2000 00:12:46 -0000
Synopsis: Source parser: method call on cast to interface type produces internal error
State-Changed-From-To: open->closed
State-Changed-By: bryce
State-Changed-When: Sun Mar 5 16:12:46 2000
State-Changed-Why:
Not reproducable in current build (20000305)
http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=106&database=java
>Unformatted:
More information about the Gcc-prs
mailing list