March 28, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=76

           Summary: Using a non-template struct as a template
           Product: D
           Version: 0.148
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: nail-mail@mail.ru


struct S
{
        template T()
        {
                void x(int i)
                {
                }
        }
}

class C(P)
{
        mixin P!().T!();
}

int main(char[][] args)
{
        auto c = new C!(S);

        return 0;
}

Compiling leads to "Assertion failure: 's->parent' on line 1694 in file 'template.c'"


-- 

April 01, 2006
d-bugmail@puremagic.com schrieb am 2006-03-28:
> struct S
> {
>         template T()
>         {
>                 void x(int i)
>                 {
>                 }
>         }
> }
>
> class C(P)
> {
>         mixin P!().T!();
> }
>
> int main(char[][] args)
> {
>         auto c = new C!(S);
>
>         return 0;
> }
>
> Compiling leads to "Assertion failure: 's->parent' on line 1694 in file 'template.c'"

Added to DStress as http://dstress.kuehne.cn/nocompile/m/mixin_18_A.d http://dstress.kuehne.cn/nocompile/m/mixin_18_B.d http://dstress.kuehne.cn/nocompile/m/mixin_18_C.d http://dstress.kuehne.cn/nocompile/m/mixin_18_D.d

Thomas