Skip to content

Commit

Permalink
[Refactoring] Remove comment-out code for the fixed issue 7469
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed May 24, 2014
1 parent fbf00d0 commit c912082
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions src/template.c
Expand Up @@ -7482,18 +7482,10 @@ Identifier *TemplateInstance::genIdent(Objects *args)
ea = ea->ctfeInterpret();
if (ea->op == TOKerror || olderr != global.errors)
continue;
#if 1

/* Use deco that matches what it would be for a function parameter
*/
buf.writestring(ea->type->deco);
#else
// Use type of parameter, not type of argument
TemplateParameter *tp = (*tempdecl->parameters)[i];
assert(tp);
TemplateValueParameter *tvp = tp->isTemplateValueParameter();
assert(tvp);
buf.writestring(tvp->valType->deco);
#endif
ea->toMangleBuffer(&buf);
}
else if (sa)
Expand All @@ -7507,18 +7499,6 @@ Identifier *TemplateInstance::genIdent(Objects *args)
error("forward reference of %s %s", d->kind(), d->toChars());
continue;
}
#if 0
VarDeclaration *v = sa->isVarDeclaration();
if (v && v->storage_class & STCmanifest)
{
ExpInitializer *ei = v->init->isExpInitializer();
if (ei)
{
ea = ei->exp;
goto Lea;
}
}
#endif
const char *p = mangle(sa);

/* Bugzilla 3043: if the first character of p is a digit this
Expand Down

0 comments on commit c912082

Please sign in to comment.