Thread overview
[Issue 2537] New: compiler crashes on this code:
Dec 22, 2008
d-bugmail
Dec 22, 2008
d-bugmail
Dec 22, 2008
d-bugmail
Jan 09, 2009
d-bugmail
Jan 09, 2009
d-bugmail
Jan 09, 2009
d-bugmail
December 22, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2537

           Summary: compiler crashes on this code:
           Product: D
           Version: 2.022
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: resume755@mail.ru


(code attached in next message)

$ dmd -unittest bug.d
Segmentation fault


-- 

December 22, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2537





------- Comment #1 from resume755@mail.ru  2008-12-22 10:15 -------
Created an attachment (id=284)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=284&action=view)
dmd 2.022 segfault on this code


-- 

December 22, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2537





------- Comment #2 from resume755@mail.ru  2008-12-22 10:19 -------
(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;


-- 

January 09, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2537


resume755@mail.ru changed:

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




-- 

January 09, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2537





------- Comment #3 from braddr@puremagic.com  2009-01-08 21:57 -------
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.


-- 

January 09, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2537





------- Comment #4 from resume755@mail.ru  2009-01-09 08:01 -------
(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


--