Bug 6140 – Wrong ambiguity error with overloading

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-06-09T21:39:00Z
Last change time
2014-04-16T05:48:07Z
Keywords
rejects-valid
Assigned to
nobody
Creator
andrei

Comments

Comment #0 by andrei — 2011-06-09T21:39:34Z
void fun(T...)() {} void fun(T...)(uint) {} void main() { fun!(main)(3u); fun!(main)(3); } This test fails in two different ways for the two lines of main. It shouldn't fail at all.
Comment #1 by lovelydear — 2012-04-24T03:11:39Z
Also fails on 2.059
Comment #2 by andrej.mitrovich — 2013-02-09T08:13:59Z
The first one doesn't fail, but the second one does (2.061).
Comment #3 by k.hara.pg — 2014-04-16T05:48:07Z