Bug 24063 – Disallow overloads that make no sense

Status
NEW
Severity
minor
Priority
P5
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-08-01T13:47:59Z
Last change time
2024-12-13T19:30:20Z
Assigned to
No Owner
Creator
Bolpat
Moved to GitHub: dmd#20317 →

Comments

Comment #0 by qs.il.paperinik — 2023-08-01T13:47:59Z
Functions can be overloaded based on attributes, linkage, and possibly other details that cannot be distinguished by a caller and therefore always give you an ambiguity error. The spec should clarify that it cannot be done and such overloads should not compile.
Comment #1 by robert.schadek — 2024-12-13T19:30:20Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20317 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB