November 13, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5211

           Summary: DMD Can't handle nested aa literals
           Product: D
           Version: D1
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: doob@me.com


--- Comment #0 from Jacob Carlborg <doob@me.com> 2010-11-13 07:44:28 PST ---
The following code:

module main;

void main ()
{
    auto tree = ["" : ["" : ""]];
}

Using DMD 1.065 results in:

Assertion failed: (0), function toExpression, file init.c, line 437.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 13, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5211


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
                 CC|                            |clugdbug@yahoo.com.au
            Summary|DMD Can't handle nested aa  |ICE(init.c) DMD Can't
                   |literals                    |handle nested aa literals
         OS/Version|Mac OS X                    |All


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2010-11-13 11:19:42 PST ---
ICE only seems to happen on D1, but the error message on D2 is poor:
Integer constant expression expected instead of "" -- and it gives the line
number of the third "", whereas it wants the second "" to be an integer.
Changing the second "" to an integer changes the error message to:
"Error: not an associative array initializer"

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