www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11260] New: Assertion `type->ty != Tstruct || ((TypeStruct *)type)->sym == this' failed

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

           Summary: Assertion `type->ty != Tstruct || ((TypeStruct
                    *)type)->sym == this' failed
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: samukha voliacable.com


--- Comment #0 from Max Samukha <samukha voliacable.com> 2013-10-14 09:54:14
PDT ---
mixin template T() {
    struct S {}    
}

void main() {

    mixin T;

    {
        mixin T;
    }    
}


dmd: struct.c:859: 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: -------
Oct 14 2013