[Issue 9806] assertion failure in struct.c:668

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 2 02:37:42 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9806



--- Comment #4 from Nils <nilsbossung at googlemail.com> 2013-04-02 02:37:39 PDT ---
Still fails with a tuple parameter:

---
cat > test.d <<code
struct S(x ...)
{
    template Next()
    {
        enum expr = x[0] + 1;
        alias S!expr Next;
    }
}
alias S!1 One;
alias S!0.Next!() OneAgain;
code
dmd -c -o- test.d
---
dmd: struct.c:722: virtual void StructDeclaration::semantic(Scope*): Assertion
`type->ty != Tstruct || ((TypeStruct *)type)->sym == this' failed.
Aborted (core dumped)
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list