http://d.puremagic.com/issues/show_bug.cgi?id=3854
Summary: Error on static initialization of arrays with trailing comma. Product: D Version: 1.056 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: s...@q1cc.net --- Comment #0 from Markus Dangl <s...@q1cc.net> 2010-02-25 12:16:37 PST --- The following code worked in DMD 1.045, but not with 1.056 and i think it should: uint[][] b = [[ 1, 2, ]]; The following code always works, which is odd: uint[] a = [ 1, 2, ]; I assume it is a minor parser bug. Workaround: Omit the last comma. Here is the full code i used: module main; int main(char[][] args) { uint[][] b = [[ 1, 2, ]]; return 0; } And the output of "dmd main.d": main.d(3): expression expected, not ']' main.d(3): comma expected separating array initializers, not ; main.d(4): semicolon expected, not 'return' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------