public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/1112: Source parser: method call on cast to interface type produces internal error
@ 2000-12-20 12:06 bryce
  0 siblings, 0 replies; only message in thread
From: bryce @ 2000-12-20 12:06 UTC (permalink / raw)
  To: java-gnats

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-12-20 12:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:06 java/1112: Source parser: method call on cast to interface type produces internal error bryce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).