[Bug 76] New: Using a non-template struct as a template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 28 12:06:37 PST 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=76
Summary: Using a non-template struct as a template
Product: D
Version: 0.148
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: diagnostic
Severity: normal
Priority: P3
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: nail-mail at mail.ru
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'"
--
More information about the Digitalmars-d-bugs
mailing list