www.digitalmars.com         C & C++   DMDScript  

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


          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
double quotes)

//(this is my first ever bug report)

Apr 20 2018