[Issue 3576] New: Can't overload explicitly instantiated template functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 5 06:46:47 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3576
Summary: Can't overload explicitly instantiated template
functions
Product: D
Version: future
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2009-12-05 06:46:46 PST ---
Broken in 2.037, works in 2.036:
void foo(T)(T arg) {}
void foo(T)(T arg, uint bar) {}
void main() {
foo(1); // works
foo(1, 2); // works
foo!(uint)(1); // Error: template instance foo!(uint) matches
// more than one template declaration, foo(T) and foo(T)
}
--
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