[Issue 12375] New: Writeln of a char plus a fixed size array of chars
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 15 16:37:21 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12375
Summary: Writeln of a char plus a fixed size array of chars
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: regression
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2014-03-15 16:37:20 PDT ---
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])
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list