D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2708 - Assertion failure: 'global.errors' on line 3883 in file 'template.c'
Summary: Assertion failure: 'global.errors' on line 3883 in file 'template.c'
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2009-03-05 04:13 UTC by Max Samukha
Modified: 2015-06-09 01:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Max Samukha 2009-03-05 04:13:58 UTC
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;
}
Comment 1 Max Samukha 2009-10-21 02:08:46 UTC
Fixed at some point