www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: aziz.kerim 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.


-- 
Jan 13 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1785


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2008-09-03 01:34 -------
Fixed dmd 1.035 and 2.019


-- 
Sep 02 2008