Bug 23543 – [stdio] function std.stdio.writeln!string.writeln conflicts with itself

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-12-08T11:53:17Z
Last change time
2024-04-10T11:26:18Z
Assigned to
No Owner
Creator
Alisa Lain

Attachments

IDFilenameSummaryContent-TypeSize
1863dlang-issue-23543.tar.gzCase in which compilation failedapplication/gzip5848

Comments

Comment #0 by al1-ce — 2022-12-08T11:53:17Z
Compilers outs really wierd error: Error: function `std.stdio.writeln!string.writeln` at /usr/include/dlang/dmd/std/stdio.d(4211,6) conflicts with function `std.stdio.writeln!string.writeln` at /usr/include/dlang/dmd/std/stdio.d(4211,6) And when I tried isolating it into it's own small case: import std.stdio; private const string _version = "v"; void main() { writeln(_version); } It produced nothing, but import in my program to just "import std.stdio: writeln;" solved the problem.
Comment #1 by razvan.nitu1305 — 2022-12-08T14:13:54Z
I'm sorry, but without a reproducible test case there is really not much that we can do.
Comment #2 by al1-ce — 2022-12-08T14:19:49Z
I can attach archive of "snapshot" I made using dustmite
Comment #3 by razvan.nitu1305 — 2022-12-09T11:53:25Z
Please.
Comment #4 by al1-ce — 2022-12-10T11:45:17Z
Created attachment 1863 Case in which compilation failed DUB version 1.30.0, built on Nov 23 2022 DMD64 D Compiler v2.101.0
Comment #5 by al1-ce — 2024-04-10T11:26:18Z
Closing it as stale (tbh still don't know what was that)