Bug 17282 – [REG 2.074.0-b1] std.conv.parse throws with -debug

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-03-29T00:02:45Z
Last change time
2018-01-05T13:28:01Z
Assigned to
No Owner
Creator
Roman

Comments

Comment #0 by freeslave93 — 2017-03-29T00:02:45Z
This code import std.conv; void main() { import std.stdio; auto str = "0=\x00\x02\x55\x40&\xff\xf0\n\x00\x04\x55\x40\xff\xf0~4+10\n"; writeln(parse!uint(str)); } throws "UTFException" when compiled with '-debug', but does not throw otherwise. I believe this is not expected behavior. std.conv.parse should not care about the rest of the content, and just stop after reading the number.
Comment #1 by jack — 2017-03-29T14:14:22Z
Comment #2 by github-bugzilla — 2017-04-06T14:03:07Z
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/813efcb7e4b6c109f223cd00013218fbd289025d Fix Issue 17282 - std.conv.parse throws with -debug https://github.com/dlang/phobos/commit/34ad8b488d3a32f94b12a61f49c55ebf34533073 Merge pull request #5310 from JackStouffer/issue17282 [REG] Fix Issue 17282 - std.conv.parse throws with -debug merged-on-behalf-of: Martin Nowak <[email protected]>
Comment #3 by github-bugzilla — 2017-05-29T23:02:10Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/813efcb7e4b6c109f223cd00013218fbd289025d Fix Issue 17282 - std.conv.parse throws with -debug https://github.com/dlang/phobos/commit/34ad8b488d3a32f94b12a61f49c55ebf34533073 Merge pull request #5310 from JackStouffer/issue17282
Comment #4 by github-bugzilla — 2017-08-07T12:26:36Z
Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/813efcb7e4b6c109f223cd00013218fbd289025d Fix Issue 17282 - std.conv.parse throws with -debug https://github.com/dlang/phobos/commit/34ad8b488d3a32f94b12a61f49c55ebf34533073 Merge pull request #5310 from JackStouffer/issue17282
Comment #5 by github-bugzilla — 2018-01-05T13:28:01Z
Commits pushed to dmd-cxx at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/813efcb7e4b6c109f223cd00013218fbd289025d Fix Issue 17282 - std.conv.parse throws with -debug https://github.com/dlang/phobos/commit/34ad8b488d3a32f94b12a61f49c55ebf34533073 Merge pull request #5310 from JackStouffer/issue17282