Bug 3660 – Templates and shared functions don't mix

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2009-12-31T19:27:00Z
Last change time
2015-06-09T01:27:03Z
Keywords
rejects-valid
Assigned to
nobody
Creator
jason.james.house

Comments

Comment #0 by jason.james.house — 2009-12-31T19:27:50Z
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)
Comment #1 by bugzilla — 2010-01-13T03:05:24Z
Changeset 335
Comment #2 by bugzilla — 2010-01-30T22:46:17Z
fixed dmd 2.040