www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6739] New: [CTFE] Cannot set a value to an outer AA of a nested AA

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6739

           Summary: [CTFE] Cannot set a value to an outer AA of a nested
                    AA
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: youxkei gmail.com



---
pragma(msg, {
    int[int][int] aaa;
    aaa[3][1] = 4;
    aaa[3][3] = 3;// OK
    aaa[1][5] = 9;// Error: key 1 not found in associative array aaa
    return 2;
}());

This code doesn't be compiled by the dmd v2.056 DEBUG(built from github after
the Issue 6693 was fixed).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 28 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6739


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED



16:02:50 PDT ---
https://github.com/D-Programming-Language/dmd/commit/fcdae7c8071584a7729333571fb86354b7db2b85

https://github.com/D-Programming-Language/dmd/commit/e001f94d281eac901825739060aff2718ea2ee18

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