Bug 2502 – compiler crashes on erroneous AA declaration

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2008-12-10T00:48:00Z
Last change time
2014-03-01T00:36:20Z
Assigned to
bugzilla
Creator
ellery-newcomer

Comments

Comment #0 by ellery-newcomer — 2008-12-10T00:48:05Z
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.
Comment #1 by bugzilla — 2008-12-10T18:48:51Z
Works fine with dmd 1.037 and 2.021.
Comment #2 by ellery-newcomer — 2008-12-10T19:05:40Z
(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
Comment #3 by 2korden — 2008-12-10T19:13:13Z
I confirm: Internal error: e2ir.c 4302
Comment #4 by gide — 2008-12-11T04:13:41Z
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 }
Comment #5 by clugdbug — 2009-05-08T04:58:37Z
*** This bug has been marked as a duplicate of 1934 ***