Bug 8568 – compile time access of associative array keys results in segfault

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2012-08-20T11:55:00Z
Last change time
2012-12-03T03:58:01Z
Assigned to
nobody
Creator
ellery-newcomer

Comments

Comment #0 by ellery-newcomer — 2012-08-20T11:55:10Z
dmd 2.060 code: import std.typetuple; enum E = ["a":"afd", "b": "fdb"]; pragma(msg, TypeTuple!(E.keys())); void main(){}
Comment #1 by ellery-newcomer — 2012-08-20T11:56:33Z
Well, I suppose technically its passing keys to TypeTuple that is causing the segfault.
Comment #2 by clugdbug — 2012-12-03T03:58:01Z
This is fixed by my patch to bug 7602 (it's not a pure duplicate, but has the same root cause). *** This issue has been marked as a duplicate of issue 7602 ***