www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3533] New: Associative array init is broken in a subtle way

reply d-bugmail puremagic.com writes:
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: nobody puremagic.com
        ReportedBy: samukha voliacable.com


--- Comment #0 from Max Samukha <samukha 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: -------
Nov 20 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3533


Haruki Shigemori <rayerd.wiz gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rayerd.wiz gmail.com
         Resolution|                            |FIXED


--- Comment #1 from Haruki Shigemori <rayerd.wiz gmail.com> 2010-08-25 05:44:31
PDT ---
As dmd 2.048, this issue is already fixed.

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