www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13088] New: Compiler segfaults with trivial case code.

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

          Issue ID: 13088
           Summary: Compiler segfaults with trivial case code.
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice
          Severity: critical
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: k.hara.pg gmail.com

Test case:

struct X
{
    void mfoo(this T)() {}
}
void test()
{
    shared const X scx;

    scx.mfoo();
}

struct Vec
{
    int x;
    void sc() shared const {}
}

--
Jul 10 2014