[Issue 2708] New: Assertion failure: 'global.errors' on line 3883 in file 'template.c'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 5 02:13:57 PST 2009


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

           Summary: Assertion failure: 'global.errors' on line 3883 in file
                    'template.c'
           Product: D
           Version: 2.025
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: samukha at voliacable.com


template Foo(T)
{
}

template Bar()
{
    alias Foo!(typeof(this)) foo;
}

struct S
{
    mixin Bar;
}
----

Worked around by taking the type out of template parameter list:

template Bar()
{
    alias typeof(this) T;
    alias Foo!(T) foo;
}


-- 



More information about the Digitalmars-d-bugs mailing list