www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2332] New: Initializing const or invariant hashes croaks

reply d-bugmail puremagic.com writes:
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;
}


-- 
Sep 02 2008
parent d-bugmail puremagic.com writes:
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


-- 
Oct 20 2008