[Issue 10558] New: Assertion failure on struct.c:741

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 6 11:10:07 PDT 2013


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

           Summary: Assertion failure on struct.c:741
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: youxkei at gmail.com


--- Comment #0 from Hisayuki Mima <youxkei at gmail.com> 2013-07-07 03:10:05 JST ---
template Template(){}

struct Struct(alias T){}

alias bar = foo!(Template!());

template foo(alias T)
{
    alias foobar = Struct!T;

    void fun() {
        alias a = foo!T;
    }
}

The above code compiled, dmd v2.064-devel-3df7dab outputs:

dmd: struct.c:741: virtual void StructDeclaration::semantic(Scope*): Assertion
`type->ty != Tstruct || ((TypeStruct *)type)->sym == this' failed.

-- 
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