[Issue 5995] string append negative integer causes segfault
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Nov 22 09:02:04 PST 2016
https://issues.dlang.org/show_bug.cgi?id=5995
--- Comment #17 from Steven Schveighoffer <schveiguy at yahoo.com> ---
There are two problems, one is that the OP's code compiles, the other is that
it segfaults. Arguably, fixing the first problem will fix the second. But just
fixing the second leaves other problems still intact.
Also, note that this succeeds, but likely does not do what the writer wants:
string s = "123456";
s ~= 7;
Guess what this does (yes, it compiles)?
s ~= 123456;
--
More information about the Digitalmars-d-bugs
mailing list