Bug 76 – Using a non-template struct as a template
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-03-28T14:06:00Z
Last change time
2014-02-14T20:33:24Z
Keywords
diagnostic
Assigned to
bugzilla
Creator
nail-mail
Comments
Comment #0 by nail-mail — 2006-03-28T14:06:33Z
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'"