[Issue 8373] New: IFTI fails on overloading of function vs non function template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 10 13:39:53 PDT 2012
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 at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2012-07-10 13:39:52 PDT ---
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: -------
More information about the Digitalmars-d-bugs
mailing list