[Issue 1990] New: Invariant associative arrays broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 12 14:45:56 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1990

           Summary: Invariant associative arrays broken
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: bartosz at relisoft.com


The following code compiles, but the resulting program access-violates.
Removing "invariant" fixes it.
void main ()
{
    invariant bool [string] map = [ "foo":true, "bar":true ];
}


-- 



More information about the Digitalmars-d-bugs mailing list