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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Apr 15 20:45:52 PDT 2017


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

--- Comment #9 from Walter Bright <bugzilla at digitalmars.com> ---
What's going wrong is the compiler is moving expressions with side effects
(SDL_GetKeyName('W'), SDL_GetKeyName('A')) to before the function call, which
gets the side effects out of order. I seem to recall a PR to do this, I'll have
to find it.

--


More information about the Digitalmars-d-bugs mailing list