digitalmars.D.bugs - [Issue 8373] New: IFTI fails on overloading of function vs non function template
- d-bugmail puremagic.com (23/23) Jul 10 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8373
- d-bugmail puremagic.com (10/10) Jul 10 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8373
- d-bugmail puremagic.com (11/12) Jul 10 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8373
http://d.puremagic.com/issues/show_bug.cgi?id=8373 Summary: IFTI fails on overloading of function vs non function template Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: timon.gehr gmx.ch DMD 2.059: auto fun(T...)(T args){return 1;} template fun(a...){auto fun(T...)(T args){return 2;}} static assert(fun(0)==1); // error The call matches only the first declaration, therefore the overload resolution should succeed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 10 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8373 Jonathan M Davis <jmdavisProg gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdavisProg gmx.com PDT --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 10 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8373Thank you for looking that up, but it is a different issue. statement as a function call, and therefore the instantiation is ambiguous. In this case the compiler errors out on the matching template with the error message that would be adequate if only the non-matching template was present. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 10 2012