[Issue 6547] New: Call to std.algorithm.remove causes compile error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 23 20:52:33 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6547
Summary: Call to std.algorithm.remove causes compile error
Product: D
Version: D2
Platform: x86_64
OS/Version: Mac OS X
Status: NEW
Severity: major
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: itsallaboutthedyo at gmail.com
--- Comment #0 from Tim Keating <itsallaboutthedyo at gmail.com> 2011-08-23 20:52:31 PDT ---
This minimal use case generates an error in std.algorithm:
char[] s = "<html>Some fake HTML for your testing pleasure</html>".dup;
auto start = s.find("<");
auto len = s[start..$].find(">");
s = s.remove(tuple(start, start+len+1));
writeln(s);
The compile error I get from this is:
/usr/local/Cellar/dmd/2.054/src/phobos/std/algorithm.d(5826): Error: front(src)
is not an lvalue
/usr/local/Cellar/dmd/2.054/src/phobos/std/algorithm.d(5826): Error: front(tgt)
is not an lvalue
I pulled the most current version of Phobos from github and it has the same
problem, though there it occurs on line 5933.
--
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