[Issue 12719] New: struct.c:705: virtual void StructDeclaration::semantic(Scope*): Assertion `parent && parent == sc->parent' failed.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu May 8 14:34:30 PDT 2014


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 at puremagic.com
          Reporter: nilsbossung at 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)
---

--


More information about the Digitalmars-d-bugs mailing list