[Issue 3175] rejects templated ref return function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 25 18:17:20 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3175
Shin Fujishiro <rsinfu at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
Severity|trivial |major
--- Comment #3 from Shin Fujishiro <rsinfu at 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: -------
More information about the Digitalmars-d-bugs
mailing list