[Issue 3660] New: Templates and shared functions don't mix
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 31 19:27:53 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3660
Summary: Templates and shared functions don't mix
Product: D
Version: 2.036
Platform: x86
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: jason.james.house at gmail.com
--- Comment #0 from Jason House <jason.james.house at gmail.com> 2009-12-31 19:27:50 PST ---
Sample code:
=========================
struct foo{
void bar(T)(T t){}
void bar(T)(T t) shared {}
}
void main(){
foo x;
x.bar(1);
}
=========================
Result with dmd 2.037:
$ dmd test.d
test.d(7): Error: template test.foo.bar(T) matches more than one function
template declaration:
bar(T)
and:
bar(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