From 0131d93b2beccb78da487a20ca68edf492b5f0f3 Mon Sep 17 00:00:00 2001 From: Daniel Murphy Date: Sat, 30 Aug 2014 19:13:09 +1000 Subject: [PATCH] Fix shadowing in deduceType --- src/template.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/template.c b/src/template.c index 41bdd8208baa..a9997a27eae1 100644 --- a/src/template.c +++ b/src/template.c @@ -4249,13 +4249,13 @@ MATCH deduceType(RootObject *o, Scope *sc, Type *tparam, TemplateParameters *par match1 = MATCHexact; for (size_t j = 0; j < xt->argexps.dim; j++) { - Expression *e = xt->argexps[j]; - if (e == emptyArrayElement) + Expression *ex = xt->argexps[j]; + if (ex == emptyArrayElement) continue; Type *pt = tt->addMod(xt->tparams[j]->mod); if (wm && *wm) pt = pt->substWildTo(*wm); - MATCH m = e->implicitConvTo(pt); + MATCH m = ex->implicitConvTo(pt); if (match1 > m) match1 = m; if (match1 <= MATCHnomatch)