Bug 2537 – compiler crashes on this code:

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-12-22T10:14:00Z
Last change time
2015-06-09T01:20:50Z
Assigned to
bugzilla
Creator
resume755

Attachments

IDFilenameSummaryContent-TypeSize
284bug.ddmd 2.022 segfault on this codetext/plain1231

Comments

Comment #0 by resume755 — 2008-12-22T10:14:12Z
(code attached in next message) $ dmd -unittest bug.d Segmentation fault
Comment #1 by resume755 — 2008-12-22T10:15:07Z
Created attachment 284 dmd 2.022 segfault on this code
Comment #2 by resume755 — 2008-12-22T10:19:59Z
(thanks to maxter) Error can be avoided by replacement of lines on: enum isDynamicT = false; alias typeof( this ) M; enum width = width2; enum height = height2; enum length = width * height; private Element[] data;
Comment #3 by braddr — 2009-01-08T21:57:48Z
Wait.. Does dmd still crash on the original code or not? ANY instance of dmd crashing is a bug, even if the input source can be changed to avoid it.
Comment #4 by resume755 — 2009-01-09T08:01:31Z
(In reply to comment #3) > Wait.. Does dmd still crash on the original code or not? ANY instance of dmd > crashing is a bug, even if the input source can be changed to avoid it. > No, in 2.023 this bug is fixed