www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9023] New: CTFE: cannot use ~= on an empty AA.

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

           Summary: CTFE: cannot use ~= on an empty AA.
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: clugdbug yahoo.com.au



Reported in bug 4019 comment 3 (Mike van Dongen)
----
enum auto i = test();

int test()
{
    string[][string] s;
    s["a"] ~= "anything";

    return 6;
}


Error: cannot index null array s

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