Bug 6324 – ICE: .values field of enum hash errors out

Status
RESOLVED
Resolution
DUPLICATE
Severity
blocker
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-07-15T10:12:00Z
Last change time
2011-07-16T00:45:35Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2011-07-15T10:12:14Z
DMD 2.054: enum Foo = [0x01:221, 0x02:227]; void main() { auto foo = Foo.values; } Internal error: e2ir.c 4888 This is not a regression. In 2.053 it's: Internal error: e2ir.c 4875.
Comment #1 by andrej.mitrovich — 2011-07-15T10:15:41Z
Are hashes *ever* going to work at compile-time? int[string] foo = ["foo":221, "bar":227]; Error: non-constant expression ["foo":221,"bar":227]
Comment #2 by yebblies — 2011-07-16T00:45:35Z
*** This issue has been marked as a duplicate of issue 5675 ***