[Issue 4337] New: Associative array assignment with dstring keys breaks lookup

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 16 23:34:23 PDT 2010


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

           Summary: Associative array assignment with dstring keys breaks
                    lookup
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: Justin.SpahrSummers at gmail.com


--- Comment #0 from Justin Spahr-Summers <Justin.SpahrSummers at gmail.com> 2010-06-17 01:34:22 CDT ---
void main () {
    int[dstring] foo;

    foo = [
        "hello"d : 5
    ];

    assert("hello"d in foo);
}

This assertion fails on dmd 2.047 on OS X. Using foo["hello"d] = 5; or changing
the key type to string works.

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


More information about the Digitalmars-d-bugs mailing list