[nem-bug] [Nemerle 0000584]: Compiler crash when using an array initialiser with mixed types of initialiser elements and no explicit array rank.

feedback at nemerle.org feedback at nemerle.org
Tue Dec 6 22:36:45 CET 2005


The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=584> 
======================================================================
Reported By:                gjmurphy
Assigned To:                nazgul
======================================================================
Project:                    Nemerle
Issue ID:                   584
Category:                   Compiler
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             12-06-2005 15:25 CET
Last Modified:              12-06-2005 22:36 CET
======================================================================
Summary:                    Compiler crash when using an array initialiser with
mixed types of initialiser elements and no explicit array rank.
Description: 
On trying to compile the following...

module Tricky
{
    public
    makeAnArray(): array[System.Int32]
    {
        array.[][1, 2]
    }
}

... the compiler crashes with the message:-

"Internal compiler error: got some unknown exception of type:
System.NullReferenceException: Object reference not set to an instance of
an object. ()"

Supplying an explicit array rank results in the above snippet compiling
without crashing.


======================================================================

----------------------------------------------------------------------
 nazgul - 12-06-05 22:36 
----------------------------------------------------------------------
Fixed on trunk (r6002).

Issue History
Date Modified  Username       Field                    Change              
======================================================================
12-06-05 15:25 gjmurphy       New Issue                                    
12-06-05 22:36 nazgul         Status                   new => resolved     
12-06-05 22:36 nazgul         Resolution               open => fixed       
12-06-05 22:36 nazgul         Assigned To               => nazgul          
12-06-05 22:36 nazgul         Note Added: 0001047                          
======================================================================




More information about the bugs mailing list