Bug 1990 – Invariant associative arrays broken

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-04-12T16:45:00Z
Last change time
2015-06-09T01:14:37Z
Assigned to
nobody
Creator
bartosz
Blocks
1984

Comments

Comment #0 by bartosz — 2008-04-12T16:45:55Z
The following code compiles, but the resulting program access-violates. Removing "invariant" fixes it. void main () { invariant bool [string] map = [ "foo":true, "bar":true ]; }
Comment #1 by rinick — 2009-07-23T06:23:49Z
(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