www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2502] New: compiler crashes on erroneous AA declaration

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2502

           Summary: compiler crashes on erroneous AA declaration
           Product: D
           Version: 1.033
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: ellery-newcomer utulsa.edu


something like

int[wchar[2]] stuff;

causes compiler to crash with output akin to 

Internal error: e2ir.c 3894

Would be nice if it at least told me what was going on.


-- 
Dec 09 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2502


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Comment #1 from bugzilla digitalmars.com  2008-12-10 18:48 -------
Works fine with dmd 1.037 and 2.021.


-- 
Dec 10 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2502





------- Comment #2 from ellery-newcomer utulsa.edu  2008-12-10 19:05 -------
(In reply to comment #1)
 Works fine with dmd 1.037 and 2.021.
 

Oops. exact code: void main(){ int[wchar[2]] codes; codes["US"] = 3; } Sorry --
Dec 10 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2502


2korden gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




------- Comment #3 from 2korden gmail.com  2008-12-10 19:13 -------
I confirm: Internal error: e2ir.c 4302


-- 
Dec 10 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2502





------- Comment #4 from gide nwawudu.com  2008-12-11 04:13 -------
Also errors on static char arrays.

void main(){
 int[char[2]] codes;
 codes[['U','S']] = 3; //OK
 codes["US"] = 3; //Internal error: e2ir.c 4302
}


-- 
Dec 11 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2502


clugdbug yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |DUPLICATE




------- Comment #5 from clugdbug yahoo.com.au  2009-05-08 04:58 -------


*** This bug has been marked as a duplicate of 1934 ***


-- 
May 08 2009