www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1990] New: Invariant associative arrays broken

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


-- 
Apr 12 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1990


ZHOU Zhenyu <rinick gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rinick gmail.com
         Resolution|                            |WORKSFORME




--- Comment #1 from ZHOU Zhenyu <rinick gmail.com>  2009-07-23 06:23:49 PDT ---
(In reply to comment #0)
 The following code compiles, but the resulting program access-violates.
 Removing "invariant" fixes it.
 void main ()
 {
     invariant bool [string] map = [ "foo":true, "bar":true ];
 }

Works fine with dmd 2.0.31 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 23 2009