[Issue 18783] New: crash with replace

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 20 07:43:51 UTC 2018


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 at puremagic.com
          Reporter: joelcnz at 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)

--


More information about the Digitalmars-d-bugs mailing list