https://issues.dlang.org/show_bug.cgi?id=18256

          Issue ID: 18256
           Summary: Using std.range.put to put a character into a dchar[]
                    segfaults
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: installer
          Assignee: [email protected]
          Reporter: [email protected]

import std.stdio;
import std.range;

void main(string[] args)
{
    dchar[] a = cast(dchar[]) "aaa"d;
    // all three of these segfault
    put(a, cast(dchar) 'b');
    put(a, cast(wchar) 'b');
    put(a, cast(char) 'b');
}

--

Reply via email to