https://d.puremagic.com/issues/show_bug.cgi?id=12428
Summary: Regression (2.066 git-head): toUpper is corrupting
input data (modifying immutable strings)
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Vladimir Panteleev <[email protected]> 2014-03-21
12:24:40 EET ---
///////////////// test.d ////////////////
import std.array;
import std.string;
void main()
{
auto s = "abcdefghij".replicate(300);
s = s[0..10];
toUpper(s);
assert(s == "abcdefghij");
}
/////////////////////////////////////////
Introduced in https://github.com/D-Programming-Language/phobos/pull/1957
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------