digitalmars.D.bugs - [Issue 5211] New: DMD Can't handle nested aa literals
- d-bugmail puremagic.com (24/24) Nov 13 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5211
- d-bugmail puremagic.com (18/18) Nov 13 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5211
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 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: -------
Nov 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 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: -------
Nov 13 2010