www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12375] New: Writeln of a char plus a fixed size array of chars

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs 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: -------
Mar 15 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12375


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow gmail.com


--- Comment #1 from Vladimir Panteleev <thecybershadow gmail.com> 2014-03-16
06:44:34 EET ---
Introduced in https://github.com/D-Programming-Language/phobos/pull/1887

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 15 2014