Bug 8440 – templated functions + template mixins give conflict

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-07-25T13:32:17Z
Last change time
2019-10-10T11:41:45Z
Assigned to
No Owner
Creator
Ellery Newcomer

Comments

Comment #0 by ellery-newcomer — 2012-07-25T13:32:17Z
possibly related to issue 7553. code: mixin template T(int i) { auto j(string s="a", U)(U u1, U u2) { return 0; } auto j(int i,string s="a", W)(W u1, W u2) { return i; } } class X { mixin T!(1) t1; mixin T!(2) t2; } void main (){ X x = new X(); x.t1.j!(3,"a")(2.2, 3.3); } fireworks: tok.d(16): Error: tok.X.T!(2).j!("a",double).j at tok.d(2) conflicts with tok.X.T!(1).j!("a",double).j at tok.d(2) since I am disambiguating j with the mixin alias, this should not happen.
Comment #1 by razvan.nitu1305 — 2019-10-10T11:41:45Z
This has been fixed in master.