PR# 12775 Generic constraint with Rename that lists to Rename_pair elements crashes compiler
Problem Report Summary
Submitter: prestoat2000
Category: Compiler
Priority: Medium
Date: 2007/05/18
Class: Bug
Severity: Serious
Number: 12775
Release: 6.0.68434
Confidential: No
Status: Closed
Responsible: martins
Environment: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3
Solaris 10 on x86
Synopsis: Generic constraint with Rename that lists to Rename_pair elements crashes compiler
Description
A formal generic constraint that has an "empty" rename, such as G -> STRING rename end causes the compiler to crash. According to my reading of ECMA-367 (section 8.6.14), this should actually be a syntax error since a Rename_list consists of one or more Rename_pair, not zero or more.
To Reproduce
Compile with attached classes and .ecf. Compiler crashes.
Problem Report Interactions
Bug is fixed in rev#68907. A syntax error is reported for empty rename clauses in the context of a constraint renaming. Thanks for reporting.
An eweasel test has been created for this bug: test#multicon042