← Back to index
|
Original Bugzilla link
Bug 14041 – Refused writeln of a fixed size array of chars
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2015-01-25T02:15:00Z
Last change time
2015-02-18T03:41:45Z
Keywords
pull
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2015-01-25T02:15:19Z
This could be a regression: void main() { import std.stdio; char[8] a; writeln(a); } Dmd 2.067alpha: ...\dmd2\src\phobos\std\stdio.d(2918,14): Error: template std.stdio.File.LockingTextWriter.put cannot deduce function from argument types !()(char[8]), candidates are: ...\dmd2\src\phobos\std\stdio.d(2316,14): std.stdio.File.LockingTextWriter.put(A)(A writeme) if (is(ElementType!A : const(dchar)) && isInputRange!A && !isInfinite!A) ...\dmd2\src\phobos\std\stdio.d(2352,14): std.stdio.File.LockingTextWriter.put(C)(C c) if (is(C : const(dchar))) test.d(4,12): Error: template instance std.stdio.writeln!(char[8]) error instantiating
Comment #1
by sinkuupump — 2015-01-31T14:00:34Z
https://github.com/D-Programming-Language/phobos/pull/2940
Comment #2
by github-bugzilla — 2015-01-31T18:43:30Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/6a3cd276b8a39d5cfc6fe7280accfe692c6d16f4
Fix issue 14041 - Refused writeln of a fixed size array of chars
https://github.com/D-Programming-Language/phobos/commit/c3680e5bf8d701e4a0fca52f42106cf7113eedd7
Merge pull request #2940 from sinkuu/fix_14041 Fix issue 14041 - Refused writeln of a fixed size array of chars
Comment #3
by github-bugzilla — 2015-02-18T03:41:45Z
Commits pushed to 2.067 at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/6a3cd276b8a39d5cfc6fe7280accfe692c6d16f4
Fix issue 14041 - Refused writeln of a fixed size array of chars
https://github.com/D-Programming-Language/phobos/commit/c3680e5bf8d701e4a0fca52f42106cf7113eedd7
Merge pull request #2940 from sinkuu/fix_14041