Bug 18783 – crash with replace

Status
RESOLVED
Resolution
DUPLICATE
Severity
minor
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Mac OS X
Creation time
2018-04-20T07:43:51Z
Last change time
2018-04-20T08:04:21Z
Assigned to
No Owner
Creator
Joel Christensen

Comments

Comment #0 by joelcnz — 2018-04-20T07:43:51Z
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)
Comment #1 by ag0aep6g — 2018-04-20T08:04:21Z
Looks like someone else was faster: issue 18781. *** This issue has been marked as a duplicate of issue 18781 ***