DMD 2.055 on Ubuntu x86_64. Compile the following junk.d file: import std.stdio; import std.cstream; void main(string[] argv) { derr.writef("CONTINUE ... \n"); stdout.write("hi\n"); } ~/dmd2/linux/bin64/dmd junk.d junk.d(5): Error: std.stdio.stdout at /home/jlquinn/dmd2/linux/bin64/../../src/phobos/std/stdio.d(2192) conflicts with core.stdc.stdio.stdout at /home/jlquinn/dmd2/linux/bin64/../../src/druntime/import/core/stdc/stdio.di(264)
Why do you think this is a bug? Solutions to your problem include selective imports (import std.cstream : derr), or using disambiguation aliases (alias std.stdio.stdout stdout).
I think it's an error because I should be able to use facilities from the standard library without such conflict. Note that I'm not asking for guarantees about how the streams are synchronized, but it ought to compile and basically run. Sorry, I don't accept that a D user should have to distinguish between 2 stdout objects. A lot of effort is going into improving Phobos to make it civilized. This isn't. I do accept that std.stream is going to undergo a rework and that this issue may just disappear as part of that, though :-)
A comment from std.cstream: * Both std.c.stdio and std.stream are publicly imported by std.cstream. I suppose this makes *some* kind of sense, if you think of std.cstream as an alternative, and not a complement, to std.stdio.
https://github.com/D-Programming-Language/phobos/pull/2230
(In reply to Blake Anderton from comment #4) > https://github.com/D-Programming-Language/phobos/pull/2230 Disregard, this is for https://issues.dlang.org/show_bug.cgi?id=6644 instead.
invalid, see pantaleev comment.