www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1602] New: dmd freezes on array literal

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1602

           Summary: dmd freezes on array literal
           Product: D
           Version: 2.006
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: spam extrawurst.org


the following code freezes dmd infinitely

[CODE]

int[][] pins;

void main()
{
        pins    = [[],[1],[]];
        //pins  = [[],[],[]];  //this also freezes dmd endlessly
}

[/CODE]


-- 
Oct 20 2007
next sibling parent downs <default_357-line yahoo.de> writes:
For what it's worth, the following works on GDC

 int[][] pins;

 void main()
 {
         pins  = [cast(int[])[], [1], []];
         pins  = [[],[],[]];  //this also freezes dmd endlessly
 }
So it's definitely DMD-specific. --downs
Oct 23 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1602


spam extrawurst.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code





to clear things more up:

[CODE]
int[][] pins;

void main()
{
        pins    = [[],[1],[]];  // invalid: gives an error but also crashes dmd
        pins    = [[],[],[]];   // valid afaik but crashes dmd too

        //endlessly loops dmd
}
[/CODE]


-- 
Dec 06 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1602


spam extrawurst.org changed:

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





i dunno when, but it is at least fixed in 2.018


-- 
Aug 10 2008