www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14499] New: segfault on alias this to self

https://issues.dlang.org/show_bug.cgi?id=14499

          Issue ID: 14499
           Summary: segfault on alias this to self
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: ag0aep6g gmail.com

Discovered by sclytrack:
http://forum.dlang.org/post/hypelmajmxzakiuansdh forum.dlang.org

dmd crashes with a segmentation fault on this:

struct o
{
    const Object data;
    o constify() const {return this;}
    alias constify this;
}

--
Apr 25 2015