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

--- Comment #0 from Tim Keating <> 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));

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:
------- You are receiving this mail because: -------

Reply via email to