← Back to index
|
Original Bugzilla link
Bug 9686 – Wrong ambiguity overloading error for functions with signed/unsigned integral arguments
Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-10T22:55:29Z
Last change time
2024-12-13T18:04:39Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Denis Shelomovskii
Moved to GitHub: dmd#18532 →
Comments
Comment #0
by verylonglogin.reg — 2013-03-10T22:55:29Z
--- void f(ulong) { } void f(long) { } void main() { ushort us; short s; uint ui; int i; static assert(!__traits(compiles, f(us))); // OK static assert(!__traits(compiles, f(ui))); // OK f(s); // "matches both" error, but matches only `f(long)` f(i); // same error } ---
Comment #1
by robert.schadek — 2024-12-13T18:04:39Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/18532
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB