Bug 1602 – dmd freezes on array literal

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-10-20T10:28:00Z
Last change time
2015-06-09T01:14:20Z
Keywords
ice-on-invalid-code, ice-on-valid-code
Assigned to
bugzilla
Creator
spam

Comments

Comment #0 by spam — 2007-10-20T10:28:49Z
the following code freezes dmd infinitely [CODE] int[][] pins; void main() { pins = [[],[1],[]]; //pins = [[],[],[]]; //this also freezes dmd endlessly } [/CODE]
Comment #1 by default_357-line — 2007-10-23T04:45:37Z
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
Comment #2 by spam — 2007-12-06T04:53:08Z
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]
Comment #3 by spam — 2008-08-10T06:28:58Z
i dunno when, but it is at least fixed in 2.018