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: bugzi...@digitalmars.com ReportedBy: samu...@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; } --