This is the mail archive of the java-prs@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcj/293: Empty inner class initializer crash



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]