www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2537] New: compiler crashes on this code:

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


-- 
Dec 22 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2537






Created an attachment (id=284)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=284&action=view)
dmd 2.022 segfault on this code


-- 
Dec 22 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2537






(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;


-- 
Dec 22 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2537


resume755 mail.ru changed:

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




-- 
Jan 08 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2537






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.


-- 
Jan 08 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2537







 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 --
Jan 09 2009