http://d.puremagic.com/issues/show_bug.cgi?id=3911
Summary: Associative array in CTFE crashes compiler Product: D Version: 2.041 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2010-03-09 02:26:43 PST --- This crashes the compiler: auto bunch(T)(T[] items...) { return ["+" : 0]; } enum int* r = "+" in bunch(1); void main() {} The following variant of the same program doesn't crash the compiler, but gives a forward reference error, that seems wrong: Error: forward reference to bunch auto bunch() { return ["+" : 0]; } enum int* r = "+" in bunch(); void main() {} -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------