[Issue 6175] String corruption when passing static char arrays to std.conv

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 5 19:45:52 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=6175



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-04-05 19:46:30 PDT ---
(In reply to comment #2)
> This has now changed to a template error:
> 
> import std.conv;
> 
> void main()
> {
>     char[9] statCArr = "blablabla";
>     auto res1 = to!(char[])(statCArr);
> }

And now in 2.058 it has reverted back to buggy behavior again:

import std.conv;
import std.stdio;

void main()
{
    char[9] statCArr = "blablabla";
    auto res1 = to!(char[])(statCArr);
    writeln(res1);
}

$ rdmd test.d
$ B @

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


More information about the Digitalmars-d-bugs mailing list