[Issue 16408] Converting char* to string with std.conv.to!string is wrong in release mode

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Aug 21 03:31:20 PDT 2016


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

Lodovico Giaretta <lodovico at giaretart.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lodovico at giaretart.net

--- Comment #1 from Lodovico Giaretta <lodovico at giaretart.net> ---
(In reply to Matt Jones from comment #0)
> This program prints WASD in debug mode as expected, but prints DDDD in
> release mode. My guess is std.conv.to!string is failing with char* for some
> reason.
> 
> [...]

Can I ask you to try with `std.string.fromStringz` instead of
`std.conv.to!string` ?
This may help find out where the bug is.

--


More information about the Digitalmars-d-bugs mailing list