www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18783] New: crash with replace

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

          Issue ID: 18783
           Summary: crash with replace
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Mac OS X
            Status: NEW
          Severity: minor
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: joelcnz gmail.com

void main() {
        import std.conv : to;
        import std.string : replace;

        "”"d.replace("”", `"`); // crashes with a range error (notice the
other
double quotes)
}

//(this is my first ever bug report)

--
Apr 20 2018