[Issue 2972] New: Can't overload non-templated function against template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 13 09:28:16 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2972
Summary: Can't overload non-templated function against template
Product: D
Version: 2.030
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: dsimcha at yahoo.com
DMD doesn't seem to allow overloading of non-templated functions against
templated functions even when they have different arity and therefore no
ambiguity exits. Test case:
void foo(const char[] stuff) { }
void foo(T)(const char[] stuff, const T[] moreStuff){}
C:\home\dsimcha\bin\test.d(3): Error: template test.foo(T) conflicts with
function test.foo at C:\home\dsimcha\bin\test.d(1)
--
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