http://d.puremagic.com/issues/show_bug.cgi?id=3175
Shin Fujishiro <rsi...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch Severity|trivial |major --- Comment #3 from Shin Fujishiro <rsi...@gmail.com> 2010-09-25 18:16:35 PDT --- Patch against dmd r687. deduceFunctionTemplateMatch() must reset storage class in parameter's scope as done in matchWithInstance(). --- a/src/template.c +++ b/src/template.c @@ -887,6 +887,7 @@ MATCH TemplateDeclaration::deduceFunctionTemplateMatch(Scope *sc, Loc loc, Objec ScopeDsymbol *paramsym = new ScopeDsymbol(); paramsym->parent = scope->parent; Scope *paramscope = scope->push(paramsym); + paramscope->stc = 0; TemplateTupleParameter *tp = isVariadic(); int tp_is_declared = 0; Increased the severity as the bug has been repeatedly reported: bug 4041, bug 4446, bug 4934 and comment 2 of bug 2460. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------