Bug 11691 – can't join pathSplitter with dirSeparator
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-05T06:13:00Z
Last change time
2015-06-09T05:15:22Z
Keywords
pull
Assigned to
nobody
Creator
code
Comments
Comment #0 by code — 2013-12-05T06:13:43Z
cat > bug.d << CODE
import std.range, std.path;
void bug()
{
auto comps = pathSplitter("foo/bar");
auto path = join(comps, pathSeparator);
}
CODE
dmd -c bug
----
This fails because the element type of PathSplitter
is const(C[]) where it should be const(C)[].