diff -r 50eae902f77e dmd/mtype.c --- a/dmd/mtype.c Fri Nov 14 16:26:12 2008 +0100 +++ b/dmd/mtype.c Sat Nov 15 23:51:21 2008 -0500 @@ -4619,7 +4619,11 @@ { toCBuffer3(buf, hgs, mod); return; } - buf->writestring(sym->toChars()); + TemplateInstance *ti = sym->parent->isTemplateInstance(); + if (ti && ti->toAlias() == sym) + buf->writestring(ti->toChars()); + else + buf->writestring(sym->toChars()); } Expression *TypeClass::dotExp(Scope *sc, Expression *e, Identifier *ident)