www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17915] New: [REG 2.073]

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

          Issue ID: 17915
           Summary: [REG 2.073]
                    core.exception.AssertError ddmd/optimize.d(614):
                    Assertion failure
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

First raised against gdc here:
https://bugzilla.gdcproject.org/show_bug.cgi?id=274

Minimal test case.
---
void f()
{
  static class MyClass
  {
    MySmartPointer!MyClass m_member;
  }
}

struct MySmartPointer (T)
{
  T owner;
}
---

Checked via git blame and confirmed that it was introduced by
https://github.com/dlang/dmd/pull/6412

--
Oct 18 2017