Bug 2708 – Assertion failure: 'global.errors' on line 3883 in file 'template.c'
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-03-05T04:13:00Z
Last change time
2015-06-09T01:21:07Z
Keywords
rejects-valid
Assigned to
nobody
Creator
samukha
Comments
Comment #0 by samukha — 2009-03-05T04:13:58Z
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;
}