Bug 20404 – Can't disambiguate function calls made ambiguous by "import std"

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2019-11-18T06:47:35Z
Last change time
2021-07-01T22:17:50Z
Assigned to
No Owner
Creator
mipri

Comments

Comment #0 by mipri — 2019-11-18T06:47:35Z
This complete program import std; void main() { writeln(isGraphical(' ')); } properly fails to compile with this error: Error: std.uni.isGraphical at /usr/include/dmd/phobos/std/uni.d(10350) conflicts with std.ascii.isGraphical at /usr/include/dmd/phobos/std/ascii.d(461) This correction of it also fails, however: import std; void main() { writeln(std.ascii.isGraphical(' ')); } // Error: undefined identifier ascii in module std Whereas a version that simply doesn't use "import std" doesn't exhibit the second failure: import std.ascii; import std.uni; import std.stdio; void main() { writeln(std.ascii.isGraphical(' ')); }
Comment #1 by mipri — 2021-07-01T22:17:50Z
The disambiguation works in v2.097. Thanks!