← Back to index
|
Original Bugzilla link
Bug 14042 – std.conv.to of a immutable char pointer
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2015-01-25T02:41:00Z
Last change time
2015-02-18T03:41:48Z
Keywords
pull
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2015-01-25T02:41:26Z
This seems a regression: void main() { import std.conv: to; immutable(char)* ptr = "hello".ptr; auto result = ptr.to!(char[]); } ...\dmd2\src\phobos\std\conv.d(871,16): Error: cannot implicitly convert expression (value ? dup(value[0..strlen(value)]) : null) of type const(char)[] to char[] ...\dmd2\src\phobos\std\conv.d(287,24): Error: template instance std.conv.toImpl!(char[], immutable(char)*) error instantiating test.d(4,22): instantiated from here: to!(immutable(char)*)
Comment #1
by sinkuupump — 2015-01-31T14:00:02Z
https://github.com/D-Programming-Language/phobos/pull/2942
Comment #2
by github-bugzilla — 2015-01-31T14:33:37Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/7cab71b22bd829db8712e9a4c4b9c7b62a51552a
Fix Issue 14042 - std.conv.to of a immutable char pointer
https://github.com/D-Programming-Language/phobos/commit/7b8c9b2e1a3dd44de769653b3f3b826b6e038181
Merge pull request #2942 from sinkuu/fix_14042 Fix Issue 14042 - std.conv.to of a immutable char pointer
Comment #3
by github-bugzilla — 2015-02-18T03:41:48Z
Commits pushed to 2.067 at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/7cab71b22bd829db8712e9a4c4b9c7b62a51552a
Fix Issue 14042 - std.conv.to of a immutable char pointer
https://github.com/D-Programming-Language/phobos/commit/7b8c9b2e1a3dd44de769653b3f3b826b6e038181
Merge pull request #2942 from sinkuu/fix_14042