void main() @safe { import std.stdio: writeln; writeln; } dmd 2.067alpha gives: test.d(3,5): Error: safe function 'D main' cannot call system function 'std.stdio.writeln!().writeln' Note that this compiles: void main() @safe { import std.stdio: write; write('\n'); }
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/e601077b8618c595fa51807a85c54f8c4e32ca9a make 0-arg writeln @trusted: Fix Issue 13681 https://github.com/D-Programming-Language/phobos/commit/38453e82adfdcba8d5d817fd8404acf8edeb04f3 Merge pull request #3046 from John-Colvin/patch-13 make 0-arg writeln @trusted: Fix Issue 13681 take 2
Commits pushed to dmd-cxx at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/e601077b8618c595fa51807a85c54f8c4e32ca9a make 0-arg writeln @trusted: Fix Issue 13681 https://github.com/dlang/phobos/commit/38453e82adfdcba8d5d817fd8404acf8edeb04f3 Merge pull request #3046 from John-Colvin/patch-13