Merged the final dmd 2.058

This commit is contained in:
Alexey Prokhin
2012-02-15 12:29:10 +04:00
parent 8282153738
commit 5af48edec3

View File

@@ -2908,10 +2908,12 @@ Lagain:
TemplateDeclaration *td = s->isTemplateDeclaration();
if (td)
{
#if 0 // This was the fix for Bugzilla 6738, but it breaks 7498
Dsymbol *p = td->toParent2();
if (hasThis(sc) && p && p->isAggregateDeclaration())
e = new DotTemplateExp(loc, new ThisExp(loc), td);
else
#endif
e = new TemplateExp(loc, td);
e = e->semantic(sc);
return e;