www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12719] New: struct.c:705: virtual void

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

          Issue ID: 12719
           Summary: struct.c:705: virtual void
                    StructDeclaration::semantic(Scope*): Assertion `parent
                    && parent == sc->parent' failed.
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: nilsbossung googlemail.com

Works with 2.065.

---
cat > test.d << code
struct A
{
    B!int b();
}
struct B(T)
{
    A a;
    void m()
    {
        auto v = B!T.init;
    }
}
code
dmd -c test.d
---
dmd: struct.c:705: virtual void StructDeclaration::semantic(Scope*): Assertion
`parent && parent == sc->parent' failed.
Aborted (core dumped)
---

--
May 08 2014