This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
gcj/293: Empty inner class initializer crash
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/293: Empty inner class initializer crash
- From: bryce at albatross dot co dot nz
- Date: 25 Jul 2000 05:23:15 -0000
- Reply-To: bryce at albatross dot co dot nz
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, bryce@albatross.co.nz
>Number: 293
>Category: gcj
>Synopsis: Empty inner class initializer crash
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 24 22:30:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Bryce McKinlay
>Release: gcc version 2.96 20000722 (experimental)
>Organization:
>Environment:
any
>Description:
An inner class with an empty instance initializer block that
also has an explicit constructor results in an error:
$ gcj -c Empty.java
Empty.java: In class `Empty$Inner':
Empty.java: In method `Empty$Inner(Empty)':
Empty.java:0: Tree check: expected block, have compound_expr
Empty.java:0: Internal compiler error in fix_constructors, at ./parse.y:8384
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
my line 8384 reads:
compound = add_stmt_to_compound (compound, NULL_TREE,
BLOCK_EXPR_BODY (main_block));
>How-To-Repeat:
Try to compile this test case:
class Empty
{
class Inner
{
{
}
Inner() {}
}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: