[Issue 14499] New: segfault on alias this to self

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Apr 25 08:19:20 PDT 2015


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 at puremagic.com
          Reporter: ag0aep6g at 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;
}

--


More information about the Digitalmars-d-bugs mailing list