Bug 3533 – Associative array init is broken in a subtle way

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-11-20T08:03:00Z
Last change time
2015-06-09T01:27:02Z
Assigned to
nobody
Creator
samukha

Comments

Comment #0 by samukha — 2009-11-20T08:03:53Z
import std.variant; void main() { alias int[short] AA; auto a = AA.init; } ---- template instance AssociativeArray!(short,int) assert mtype.c(3351) impl There is no error if 'import std.variant;' is commented out.
Comment #1 by rayerd.wiz — 2010-08-25T05:44:31Z
As dmd 2.048, this issue is already fixed.