[Issue 16273] New: [REG 2.072a] dmd segfault with inheritance, templates, override

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jul 12 15:30:25 PDT 2016


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

          Issue ID: 16273
           Summary: [REG 2.072a] dmd segfault with inheritance, templates,
                    override
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ag0aep6g at gmail.com

Compiles up to 2.071. Git head dmd (24f0d1c) segfaults.

----
class A()
{
    alias MyD = D!();
}

class B
{
    void f() {}
    alias MyA = A!();
}

class C : B
{
    override void f() {}
}

class D() : A!()
{
    void g() { new C; }
}
----

--


More information about the Digitalmars-d-bugs mailing list