[Issue 1785] New: Mixing in an incorrect array literal causes infinite loop.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 13 11:33:06 PST 2008


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

           Summary: Mixing in an incorrect array literal causes infinite
                    loop.
           Product: D
           Version: 1.024
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: aziz.kerim at gmail.com


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.


-- 



More information about the Digitalmars-d-bugs mailing list