← Back to index
|
Original Bugzilla link
Bug 12375 – Writeln of a char plus a fixed size array of chars
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2014-03-15T16:37:00Z
Last change time
2014-06-20T13:44:00Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2014-03-15T16:37:20Z
void main() { import std.stdio: writeln; char[1] s; writeln('x', s); } DMD 2.066alpha gives: ...\dmd2\src\phobos\std\range.d(705,9): Error: static assert "Cannot put a char[1] into a LockingTextWriter." ...\dmd2\src\phobos\std\stdio.d(1162,20): instantiated from here: put!(LockingTextWriter, char[1]) ...\dmd2\src\phobos\std\stdio.d(2535,21): instantiated from here: write!(char, char[1], char) test.d(4,12): instantiated from here: writeln!(char, char[1])
Comment #1
by dlang-bugzilla — 2014-03-15T21:44:34Z
Introduced in
https://github.com/D-Programming-Language/phobos/pull/1887
Comment #2
by k.hara.pg — 2014-06-20T13:44:00Z
Fixed by:
https://github.com/D-Programming-Language/phobos/pull/2203