Bug 1785 – Mixing in an incorrect array literal causes infinite loop.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2008-01-13T13:33:00Z
Last change time
2014-02-24T15:32:32Z
Assigned to
bugzilla
Creator
aziz.koeksal
Comments
Comment #0 by aziz.koeksal — 2008-01-13T13:33:04Z
const int[] table = mixin("[1,]");
Notice that the array literal is syntactically incorrect, because trailing commas are only allowed in array initializers.
This problem occurs only when the const attribute is specified.