September 03, 2008 [Issue 2332] New: Initializing const or invariant hashes croaks | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2332 Summary: Initializing const or invariant hashes croaks Product: D Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: andrei@metalanguage.com This program crashes. Also crashes if you replace const with invariant. const bool[string] stopWords; static this() { stopWords = [ "a"[]:1 ]; } void main() { "abc" in stopWords; } -- |
October 21, 2008 [Issue 2332] Initializing const or invariant hashes croaks | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2332 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla@digitalmars.com 2008-10-20 22:22 ------- Fixed dmd 2.020 -- |
Copyright © 1999-2021 by the D Language Foundation