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

           Summary: Associative array init is broken in a subtle way
           Product: D
           Version: 2.036
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: samu...@voliacable.com


--- Comment #0 from Max Samukha <samu...@voliacable.com> 2009-11-20 08:03:53 
PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to